Files
bun.sh/test/cli/install/registry/packages/self-dep/package.json
Dylan Conway 6c8635da63 fix(install): isolated installs with transitive self dependencies (#23222)
### What does this PR do?
Packages with self dependencies at a different version were colliding
with the current version in the store node_modules. This pr nests them
in another node_modules

Example:
self-dep@1.0.2 has a dependency on self-dep@1.0.1.

self-dep@1.0.2 is placed here in:
`./node_modules/.bun/self-dep@1.0.2/node_modules/self-dep`

and it's self-dep dependency symlink is now placed in:

`./node_modules/.bun/self-dep@1.0.2/node_modules/self-dep/node_modules/self-dep`

fixes #22681
### How did you verify your code works?
Manually tested the linked issue is working, and added a test

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-10-04 02:59:47 -07:00

65 lines
2.1 KiB
JSON

{
"name": "self-dep",
"versions": {
"1.0.1": {
"name": "self-dep",
"version": "1.0.1",
"_id": "self-dep@1.0.1",
"_integrity": "sha512-X9HQMiuvWXqhxJExWwQz5X+z901PvtvYVVAsEli2k5FDVOg2j6opnkQjha5iDTWbqBrG1m95N3rKwmq3OftU/Q==",
"_nodeVersion": "24.3.0",
"_npmVersion": "10.8.3",
"integrity": "sha512-X9HQMiuvWXqhxJExWwQz5X+z901PvtvYVVAsEli2k5FDVOg2j6opnkQjha5iDTWbqBrG1m95N3rKwmq3OftU/Q==",
"shasum": "b95f3e460b2f2ede25a18cc3c25bc226a3edfc71",
"dist": {
"integrity": "sha512-X9HQMiuvWXqhxJExWwQz5X+z901PvtvYVVAsEli2k5FDVOg2j6opnkQjha5iDTWbqBrG1m95N3rKwmq3OftU/Q==",
"shasum": "b95f3e460b2f2ede25a18cc3c25bc226a3edfc71",
"tarball": "http://http://localhost:4873/self-dep/-/self-dep-1.0.1.tgz"
},
"contributors": []
},
"1.0.2": {
"name": "self-dep",
"version": "1.0.2",
"dependencies": {
"self-dep": "1.0.1"
},
"_id": "self-dep@1.0.2",
"_integrity": "sha512-idMxfr8aIs5CwIVOMTykKRK7MBURv62AjBZ+zRH2zPOZMsWbe+sBXha0zPhQNfP7cUWccF3yiSvs0AQwQXGKfA==",
"_nodeVersion": "24.3.0",
"_npmVersion": "10.8.3",
"integrity": "sha512-idMxfr8aIs5CwIVOMTykKRK7MBURv62AjBZ+zRH2zPOZMsWbe+sBXha0zPhQNfP7cUWccF3yiSvs0AQwQXGKfA==",
"shasum": "d1bc984e927fd960511dbef211551408e3bb2f72",
"dist": {
"integrity": "sha512-idMxfr8aIs5CwIVOMTykKRK7MBURv62AjBZ+zRH2zPOZMsWbe+sBXha0zPhQNfP7cUWccF3yiSvs0AQwQXGKfA==",
"shasum": "d1bc984e927fd960511dbef211551408e3bb2f72",
"tarball": "http://http://localhost:4873/self-dep/-/self-dep-1.0.2.tgz"
},
"contributors": []
}
},
"time": {
"modified": "2025-10-03T21:30:17.221Z",
"created": "2025-10-03T21:30:02.446Z",
"1.0.1": "2025-10-03T21:30:02.446Z",
"1.0.2": "2025-10-03T21:30:17.221Z"
},
"users": {},
"dist-tags": {
"latest": "1.0.2"
},
"_uplinks": {},
"_distfiles": {},
"_attachments": {
"self-dep-1.0.1.tgz": {
"shasum": "b95f3e460b2f2ede25a18cc3c25bc226a3edfc71",
"version": "1.0.1"
},
"self-dep-1.0.2.tgz": {
"shasum": "d1bc984e927fd960511dbef211551408e3bb2f72",
"version": "1.0.2"
}
},
"_rev": "",
"_id": "self-dep",
"readme": ""
}