-
Notifications
You must be signed in to change notification settings - Fork 5k
install: don't resolve a bundled dependency's optional peer past the bundle hoist root when loading bun.lock #37350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Jarred-Sumner
merged 4 commits into
main
from
farm/f0091ae1/frozen-lockfile-bundled-optional-peer
Aug 12, 2026
Merged
Changes from 1 commit
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
1c370f0
install: stop resolving a bundled dependency's optional peer past the…
robobun e8f8d69
install: document the transitive-bundle limitation of the bounded pee…
robobun ebc4512
install: tighten comments on the bounded optional peer walk
robobun b0abf38
Merge branch 'main' into farm/f0091ae1/frozen-lockfile-bundled-option…
alii File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
Binary file added
BIN
+347 Bytes
test/cli/install/registry/packages/bundled-optional-peer/bundled-optional-peer-1.0.0.tgz
Binary file not shown.
44 changes: 44 additions & 0 deletions
44
test/cli/install/registry/packages/bundled-optional-peer/package.json
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| { | ||
| "name": "bundled-optional-peer", | ||
| "versions": { | ||
| "1.0.0": { | ||
| "name": "bundled-optional-peer", | ||
| "version": "1.0.0", | ||
| "dependencies": { | ||
| "optional-peer-deps": "1.0.0" | ||
| }, | ||
| "bundleDependencies": [ | ||
| "optional-peer-deps" | ||
| ], | ||
| "_id": "bundled-optional-peer@1.0.0", | ||
| "integrity": "sha512-4Gc/aWTtJ9ePN9UqxA9tPkIMZKHyDoSQ2dmx5us9rBGUPWpz6+9ChrKV3i/zsfd3Hb/kjav9YTnZAOu0Fz6NZA==", | ||
| "shasum": "b0afca067791d99523e6e378f52cbd7f128ef730", | ||
| "dist": { | ||
| "integrity": "sha512-4Gc/aWTtJ9ePN9UqxA9tPkIMZKHyDoSQ2dmx5us9rBGUPWpz6+9ChrKV3i/zsfd3Hb/kjav9YTnZAOu0Fz6NZA==", | ||
| "shasum": "b0afca067791d99523e6e378f52cbd7f128ef730", | ||
| "tarball": "http://localhost:4873/bundled-optional-peer/-/bundled-optional-peer-1.0.0.tgz" | ||
| }, | ||
| "contributors": [] | ||
| } | ||
| }, | ||
| "time": { | ||
| "modified": "2024-12-30T18:14:22.143Z", | ||
| "created": "2024-12-30T18:14:22.143Z", | ||
| "1.0.0": "2024-12-30T18:14:22.143Z" | ||
| }, | ||
| "users": {}, | ||
| "dist-tags": { | ||
| "latest": "1.0.0" | ||
| }, | ||
| "_uplinks": {}, | ||
| "_distfiles": {}, | ||
| "_attachments": { | ||
| "bundled-optional-peer-1.0.0.tgz": { | ||
| "shasum": "b0afca067791d99523e6e378f52cbd7f128ef730", | ||
| "version": "1.0.0" | ||
| } | ||
| }, | ||
| "_rev": "", | ||
| "_id": "bundled-optional-peer", | ||
| "readme": "" | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.