Skip to content

fix(arborist): honor allowRemote exemption for registry bundle tarball - #9819

Draft
gopalsunkari860 wants to merge 1 commit into
npm:latestfrom
gopalsunkari860:fix/9800
Draft

fix(arborist): honor allowRemote exemption for registry bundle tarball#9819
gopalsunkari860 wants to merge 1 commit into
npm:latestfrom
gopalsunkari860:fix/9800

Conversation

@gopalsunkari860

Copy link
Copy Markdown

Fixes --dry-run/--package-lock-only throwing EALLOWREMOTE on registry packages that declare bundleDependencies.
The ideal-tree build "cracks open" the tarball to read bundled deps, but that pacote.extract call was missing the same
registry-tarball allowRemote exemption that reify()'s real extraction path already applies, so pacote's own
allow-remote gate mis-fired on ordinary registry tarballs. Extracted the exemption check into a shared helper used by
both paths, and added a regression test

Root cause: GitHub issue #9800 — npm install --dry-run (and --package-lock-only) crash with EALLOWREMOTE on any
registry package that declares bundleDependencies, even though a real install of the same package succeeds.

@gopalsunkari860
gopalsunkari860 marked this pull request as ready for review July 29, 2026 15:19
@gopalsunkari860
gopalsunkari860 requested review from a team as code owners July 29, 2026 15:19
@gopalsunkari860
gopalsunkari860 marked this pull request as draft July 29, 2026 15:24
@gopalsunkari860
gopalsunkari860 marked this pull request as ready for review July 29, 2026 15:39
@gopalsunkari860
gopalsunkari860 marked this pull request as draft July 29, 2026 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant