Repository navigation
[pull] main from pnpm:main - #478
Merged
Merged
Conversation
… headless install (#13644) Share the materialization plan and the link phase between the two install paths, in `pacquet-deps-restorer`. The skip set decides what `node_modules` contains and the link phase decides how it is wired, so the paths diverging in either is a correctness bug rather than a style difference. `InstallFrozenLockfile::run` drops 875 -> 485. Sharing the link phase left one behavioural flag no test pinned, and tracing it found a real bug. A workspace package matching `publicHoistPattern` is recorded in the hoist result's `hoisted_workspace_aliases`, not `publicly_hoisted_aliases_with_bins`, which is all the post-build top-level bin link reads. Its bin therefore reached the root `.bin` only via the link phase's `node_modules` re-walk, which only a non-frozen install performed, so `--frozen-lockfile` left the shim missing. pnpm's headless path re-walks, so this was pacquet diverging. Both paths now re-walk, which fixes the gap and removes the flag. That surfaced a second latent bug: `link_bins::read_package` treated anything but a missing manifest as fatal, so a stray file in `node_modules` failed the install with `NotADirectory`. Non-directory entries now mean "not a package". Seven genuine differences stay as caller-side inputs, including the frozen path's non-empty-snapshots guard, which is load-bearing because `any_installability_constraint` short-circuits on `packages` before reading snapshots.
…3647) Ten call sites repeated the same store-index setup and teardown: the `frozenStore` branch for opening the shared index, the `spawn_blocking` wrapper around it, the `spawn` / `spawn_disabled` branch for the writer, and the writer drain. None of it is install logic. `pacquet-store-dir` owns those types, so it now owns the helpers: `StoreIndex::shared_for`, `StoreIndex::open_shared`, `StoreIndexWriter::spawn_for` and `StoreIndexWriter::drain`. They take `frozen_store: bool` rather than `&Config`, keeping `store-dir` free of a dependency on the config crate above it. Two local wrappers that existed only to hold a copy are removed. The `warn!` target moves from whichever caller copied the block to `pacquet::store_index`, naming the subsystem the event is about. No behaviour change otherwise.
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 : )