[WIP] Fix outdated lockfile for pnpm install - #11
Merged
Conversation
insane66613
marked this pull request as ready for review
March 12, 2026 23:34
Copilot stopped work on behalf of
insane66613 due to an error
March 12, 2026 23:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pnpm install --no-frozen-lockfileto regenerate the lockfilepnpm-lock.yamlOriginal prompt
Repository: insane66613/MCP-SuperAssistant
A GitHub Actions job is failing in workflow
.github/workflows/release.yml("Release Extension") for run 23028763074, job 66882660384.Failure occurs at the "Install dependencies" step running
pnpm install.Error:
ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with <ROOT>/pages/content/package.jsonpages/content/package.json,autoprefixeris^10.6.40pnpm-lock.yaml(importerpages/content),autoprefixerspecifier is^10.4.20Task:
pnpm-lock.yamlis consistent withpages/content/package.jsonand CIpnpm installsucceeds in frozen-lockfile mode.--no-frozen-lockfileunless absolutely necessary).mainwith a concise title like "Fix outdated pnpm lockfile".Relevant references:
.github/workflows/release.ymlpnpm-lock.yamlpages/content/package.jsonThe following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The failure is happening in the “Install dependencies” step of the Release Extension workflow (
.github/workflows/release.yml@54e10ace66fc88be4171d8a217136acae2492e1a, step runspnpm install). The log snippet shows pnpm aborting because the lockfile doesn’t match the current workspace/package specifiers:Fix (recommended): regenerate + commit
pnpm-lock.yamlcorepack enable corepack prepare pnpm@9.15.1 --activate pnpm install --no-frozen-lockfilepnpm-lock.yamland push.This resolves the root cause: the workflow is using pnpm
9.15.1(see.github/workflows/release.ymlandpackage.json#packageManager), but the lockfile currently does not align with what pnpm computes from your workspace importers (note the workspace importers likechrome-extension,pages/content, etc. inpnpm-lock.yaml).Fix (CI-side workaround): explicitly allow lockfile updates in Release workflow
If you don’t want releases to be blocked by a lockfile mismatch (not ideal for reproducibility), change the install step in
.github/workflows/release.ymlfrom:to:
This matches the error message guidance in the log (“use
pnpm install --no-frozen-lockfile”).Why this is likely happening in your repo
pnpm-workspace.yaml) includingchrome-extension,pages/*, andpackages/*.workspace:*specifiers (e.g.,pages/contentdepends on@extension/env,@extension/shared, etc.).package.jsonin those workspaces (dependency versions, adding/removing deps, moving packages in/out of the workspace patterns) requires re-generating and committing the lockfile—or pnpm will refuse to proceed in CI.Quick sanity check after applying the fix
After committing the regenerated lockfile (recommended path), the release job should proceed past
pnpm installand then run:pnpm buildpnpm zip(note: yourzipscript already runspnpm buildagain, so you may optionally simplify later, but it’s not the current failure)If you want, paste the full
pnpm installerror block (the log was truncated right after the “specifiers in the lockfile” list), and I can point to the exact workspace/package whose specifiers diverged.User: Run pnpm install
Scope: all 15 workspace projects
ERR_PNPM_OUTDATED_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is not up to date with /pages/content/package.json
Note that in CI environments this setting is true by default. If you still need to run install in such cases, use "pnpm install --no-frozen-lockfile"
This pull request was created from Copilot chat.
💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.