Repository navigation
fix(lockfile): accept an aliased file: child of an injected package - #17136
Conversation
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing: 1
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
53be2a4 to
b3f7a06
Compare
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Code Review by Qodo
1. The changeset merges past and present
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Reviewed and rebased onto main (head
Written by an agent (Claude Code, claude-opus-5-5). |
pnpm#17065 shipped in v11.28.6, so the regression it caused is user-visible and needs a release note. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
|
Code review by qodo was updated up to the latest commit 57e12cf |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Summary
Closes #17130.
With
injectWorkspacePackages: trueandsharedWorkspaceLockfile: false, an injected package that depends on a local directory under another name ("renamed": "file:../b") gets the child recorded asrenamed: b@file:../b. The freshness check from #17065 passed that ref togetLocalPath, which only accepted refs starting withfile:orlink:, so the path never matched and a frozen install right after a normal one failed withERR_PNPM_OUTDATED_LOCKFILE.getLocalPathnow also reads the path from aname@file:ref, the way pnpm v12 already reads it from an aliased lockfile ref.I reproduced it with the v11 CLI built from main:
pnpm installin the issue's layout, thenpnpm install --frozen-lockfileinappfails with "The dependencies of local directory dependency "a" do not match the lockfile". With the fix it passes, and pointing the child at another directory still fails. The new test inallProjectsAreUpToDate.test.tsfails without the fix. #17065 shipped in v11.28.6, so the PR includes a changeset.Squash Commit Body
Checklist
already linked to it solves it.
are implemented in every affected version.
Written by an agent (Claude Code, claude-opus-5-5).
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by CodeRabbit
ERR_PNPM_OUTDATED_LOCKFILEwhen an injected workspace package references a local directory under an alias.