GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — fix: pass _isRoot context where missing by wraithgar · Pull Request #9206 · npm/cli Conversation
Contributor
fixes: #9189
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
wraithgar
force-pushed
the
gar/allow-git-fix
branch
from
6bab875 to
23d9832
Compare
owlstronaut
approved these changes
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. LGTM
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
wraithgar
pushed a commit
that referenced
this pull request
Backport of #9206 to `release/v11`
reggi
pushed a commit
that referenced
this pull request
Merged
1 task done
wayneminwang
added a commit
to wayneminwang/action-pre-commit
that referenced
this pull request
npm 11.9.0-11.12.x has a real upstream bug (npm/cli#9189, fixed in 11.13.0 via npm/cli#9206/#9237): --allow-git=root incorrectly rejects legitimate root-level git installs. pre-commit's `language: node` installer (rewritten in 4.6.1) hits exactly this path for any hook with additional_dependencies, e.g. mirrors-prettier/mirrors-eslint, failing with: npm error code EALLOWGIT npm error Fetching non-root packages of type "git" have been disabled This replaces the earlier approach (pinning pre-commit below 4.6.1) with a fix at the actual root cause -- npm, not pre-commit -- verified against a real npm issue/fix rather than a hypothesis about pre-commit's installer. pre-commit itself no longer needs any special handling. Also ensures pre-commit treats our node/npm as a usable "system" install (pre_commit/lang_base.py::exe_exists rejects executables resolved from inside $HOME, which is where our self-hosted runners install node) -- without this, pre-commit ignores the npm we just pinned and downloads its own via nodeenv instead. The npm version is pinned to an exact, verified value rather than an open range or "latest": bumping it is a deliberate action that should be re-verified first, not something that silently drifts the way this bug shipped in the first place.
felixonmars
added a commit
to felixonmars/archriscv-packages
that referenced
this pull request
Fix the Node and Rust bootstrap paths rather than excluding the three failing integration tests. npm 11.9 through 11.12 mishandles --allow-git=root, including npm 11.12.1 bundled with the newest unofficial riscv64 Node binary. Upgrade only those broken versions to npm 11.13.0 inside the isolated hook prefix, using the released upstream npm fix without weakening Git policy or replacing system npm. Leave working npm versions unchanged. Keep RUSTUP_HOME alive from toolchain installation through cargo install. Previously install_rust_with_toolchain deleted the downloaded compiler, then cargo received a different empty RUSTUP_HOME and attempted another download. This lifetime bug is reported upstream in #3319. Avoid the redundant sync where the logged cargo proxy aborts with -6; the internal abort cause still requires target-side confirmation, and the original bootstrap test remains enabled. The npm build-script regression fixture pins Node 26.7.0, whose riscv64 archive is absent. Use available Node 26.0.0 with explicitly installed npm 11.19.0 on riscv64, asserting the npm version so the original regression coverage is retained. Add focused npm-version and Rust-toolchain-lifetime regression tests. Preserve check() unchanged with no additional exclusions. The latest monferno check fails only test_cmd_output_no_shebang for cmd_output_b and cmd_output_p with "assert 127 == 1". QEMU-user emulates vfork with fork, preventing glibc posix_spawn from propagating the child exec error to Python 3.14.7. Select native builders with qemu-user-blacklist.txt rather than weakening the exit-status assertion, skipping tests, or changing subprocess behavior. Keep the existing bootstrap fixes. CPython #131398 remains open; no applicable upstream fix was found. https://archriscv.felixc.at/.status/logs/pre-commit/pre-commit-4.6.2-1.log pre-commit/pre-commit#3758 npm/cli#9206 https://github.com/npm/cli/blob/v11.13.0/CHANGELOG.md pre-commit/pre-commit#3319 https://github.com/pre-commit/pre-commit/blob/v4.6.2/pre_commit/languages/rust.py https://github.com/pre-commit/pre-commit/blob/v4.6.2/tests/languages/node_test.py https://github.com/ekalinin/nodeenv/blob/1.11.0/nodeenv.py https://unofficial-builds.nodejs.org/download/release/index.json python/cpython#131398 https://github.com/python/cpython/blob/v3.14.7/Lib/subprocess.py https://docs.python.org/3.14/library/subprocess.html#subprocess.Popen
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewers1 more reviewerUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabelsProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. [BUG] allow-git=root does not allow root level git dependencies to be installedUh oh!
There was an error while loading. Please reload this page. 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. | |||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |