You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(arborist): allow registry bundle inspection in dry runs - #9818
share the existing registry-resolved tarball validation between reification and ideal-tree building
apply the registry tarball exemption when a complete ideal tree inspects bundled dependencies
add a regression test for allowRemote=none
Root cause
Complete ideal-tree builds crack open tarballs for packages with bundled dependencies. That path passed the registry tarball URL directly to pacote.extract(), which classified it as a remote dependency and rejected it under the default allowRemote=none policy.
The fix only overrides that policy after the existing origin and registry-path checks confirm that the effective URL is registry-mediated.
Validation
reproduced npm install --dry-run [email protected] --allow-remote=none failing with EALLOWREMOTE before the fix
verified the same command exits 0 after the fix
passed the focused ideal-tree regression test
passed the existing 18-test registry URL and allowRemote reify group
npm 12's allow-remote=none default misclassifies registry tarballs of
bundleDependencies packages as remote (npm/cli#9800), which breaks lock
file maintenance on @tailwindcss/oxide-wasm32-wasi. Scope allow-remote=all
to Renovate's own npm runs via the npmrc config option; local dev and CI
keep npm 12 defaults. Remove once npm/cli#9818 ships.
Could this be prioritized? Recent updates to the widely used Renovate bot have caused the underlying issue to be triggered which causes Renovate failures - see #9800 (comment)
The reason will be displayed to describe this comment to others. Learn more.
The requested URL-rewrite fix and regression coverage are now included in 9dff1f1. Three independent npm-specific reviews covered the complete diff; two had no findings, and the remaining consistency finding was fixed. Focused Arborist build-ideal-tree and registry-resolved tests plus Arborist eslint pass.
Fixed the CI coverage failure in 12c29a9. The full Arborist suite was failing the 100% branch-coverage gate because the new complete-tree allowRemote branch lacked a remote-tarball case. Added that regression test; full Arborist tests, lint, and diff checks pass locally.
Consumers ran scripts/build-server.mjs and scripts/build-assets.mjs
from a checkout of this repository, and no release asset held them.
The new npm package @polyspec/hyper-build publishes the bins
hyper-build-server and hyper-build-assets and requires
@polyspec/hyper, the template packages, esbuild and Tailwind CSS at
exact versions. The scripts and their helpers moved into the package
once; the Makefile runs the bins by their files and the repository
scripts import its modules. The builds read checkManifest, routeReads
and the new export @polyspec/hyper/data-template.json of the published
browser package. make release-assets writes the new tarball, and the
npm consumer fixture builds a sample application with both bins.
npm 12.2.0 refuses the bundled-dependency tarball of
@tailwindcss/oxide-wasm32-wasi under allow-remote=root while it writes
a lock (npm/cli#9818), so make release-fixtures writes the fixture
lock with allow-remote=all until the pinned npm has the fix; the
bypass is H13.5-14.
The release install test failed before the change because the build
package tarball was not a built asset, and passes after it.
min-0-max
added a commit
to polyspec/hyper
that referenced
this pull request
Oct 8, 2026
Replace scripts/release.mjs and scripts/release-fixtures.mjs and their
tests with scripts/kit/release.mjs and scripts/kit/release-consumer.mjs,
configured by config/release.json.
An archive is named <package>-<language>-<version>.<ext>. The Python
package is consumed by git tag and its version is checked by
release-versions. release.yml requires the check run ci-passed of the
tagged commit.
release-consumer installs the archives in the consumer projects of
tests/release-install and runs a smoke command for each package,
which replaces the sample application build of the removed install
test. release-consumer-lock writes their locks with
npm_config_allow_remote=all, because npm 12.2.0 refuses the lock under
allow-remote=root (npm/cli#9818).
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Valid shared alias slots can fail normal installs with EALLOWREMOTE under allowRemote=none, while repeated bundle-status checks incur avoidable quadratic dependency-graph traversal.
Keep trusted registry selections through linked installs and check them against the current options. Read bundle status once per lookup.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 1b052141-348c-4c8a-a99d-a5c7a97e2b9c
Use the native path format for the local-file fixture so its strict
extraction assertions also work on Windows.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 1b052141-348c-4c8a-a99d-a5c7a97e2b9c
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The test fixture lacks a valid incoming URL dependency edge, so the helper rejects it before checking registry eligibility, leaving accidental registry exemptions for declared remote URLs untested.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Fixture lacks a dependency edge, so it never tests registry exemption
This fixture has no edgesIn, so the helper rejects it before checking whether the dependency was declared as a registry spec; isRegistryDependency is no longer consulted. The test therefore misses the policy boundary where a declared remote URL is rewritten into the configured registry. Construct the node with a valid URL dependency edge so the assertion detects an accidental registry exemption.
npm 12 defaults allow-remote to none and misclassifies registry tarballs of packages with bundleDependencies as remote (npm/cli#9800). Any lockfile update touching @tailwindcss/oxide-wasm32-wasi therefore failed with EALLOWREMOTE and left PR #83 with a stale package-lock.json. Set allow-remote=all for Renovate's own npm runs only; remove once npm/cli#9818 ships in Renovate's image.
One installed alias can satisfy edges that name different alias
targets. Rejecting every such node made its registry tarball fail with
EALLOWREMOTE under allow-remote=none. Keep all alias targets and grant
the exemption only when they resolve to the same registry origin and
path.
Also give the non-registry remote test a valid URL dependency edge so
it exercises the registry-spec guard.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 0d19c4f9-e55e-447a-b4fe-4d908fbee4c6
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
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.
Summary
allowRemote=noneRoot cause
Complete ideal-tree builds crack open tarballs for packages with bundled dependencies. That path passed the registry tarball URL directly to
pacote.extract(), which classified it as a remote dependency and rejected it under the defaultallowRemote=nonepolicy.The fix only overrides that policy after the existing origin and registry-path checks confirm that the effective URL is registry-mediated.
Validation
npm install --dry-run [email protected] --allow-remote=nonefailing withEALLOWREMOTEbefore the fixallowRemotereify groupnode . run lint -w @npmcli/arboristFixes #9800