Repository navigation
[pull] main from pnpm:main - #486
Merged
Merged
Conversation
…#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.
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
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 : )