Skip to content

[pull] main from pnpm:main - #486

Merged
pull[bot] merged 3 commits into
dwongdev:mainfrom
pnpm:main
Aug 7, 2026
Merged

pull[bot] merged 3 commits into
dwongdev:mainfrom
pnpm:main

Conversation

@pull

@pull pull Bot commented Aug 7, 2026 •

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

zkochan and others added 3 commits August 7, 2026 10:56
…#13691)

The sparse-tail mirror tests opened the mirror file with append(true) and
then called set_len to extend it. Windows opens append-only handles with
FILE_APPEND_DATA but not FILE_WRITE_DATA, and SetEndOfFile (which backs
set_len) requires write access, so set_len failed with PermissionDenied
and the Windows CI test job failed. A plain write(true) handle satisfies
set_len on every platform and does not truncate the file.

Also gate the symlinked_lockfile_error import in env_lockfile.rs to
cfg(unix): it is only called from the unix-only ELOOP normalization
path, so the ungated import raised an unused-import warning on Windows
builds.
#13471 passed GIT_TERMINAL_PROMPT=0 in the options given to
graceful-git, but graceful-git forwards only `cwd` to the process it
spawns, so the override never reached git: a repository that needs
credentials still made git prompt on the terminal, and `pnpm outdated`
with a private GitHub Actions repo (as well as resolving a private git
dependency) still hung.

Spawn git through safe-execa directly with the guard in the child
environment, keeping the single-retry policy of the ref-read call site.
The regression went unnoticed because the test mocked graceful-git and
asserted that the env option was handed to it, not that it reached git;
the mocks now sit on the process-spawn boundary and every invocation is
checked, so dropping the guard fails 25 tests.

The Rust runner sets the variable on the Command itself and was already
correct.

Fixes #13522

---------

Co-authored-by: Zoltan Kochan <[email protected]>
…ng (#13689)

A catalog entry that moves to a version the locked one cannot satisfy left
the range-only fast path with nothing to do, so the install fell back to a
full resolution. Replacing the package is the same rewrite an exact
`pnpm.overrides` entry performs, so reuse that machinery rather than
growing a second rewriter: the same dependency-shape validation decides
whether every locked child still fits the new version.

Split the override path into its plan building and a shared apply step so
the catalog caller can drive the rewrite without writing synthetic
overrides into the lockfile, and record the updated catalog snapshot
instead.

An override moves a package everywhere it appears; a catalog entry only
governs the importers that reference it. Fall back when anything else
reaches the package -- an importer pinning it directly, or any package
depending on it -- since the graph would then have to hold both versions.

Implemented in both the TypeScript CLI and pacquet.

Closes #13474.
@pull pull Bot locked and limited conversation to collaborators Aug 7, 2026
@pull pull Bot added the ⤵️ pull label Aug 7, 2026
@pull
pull Bot merged commit 654af93 into dwongdev:main Aug 7, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants