Skip to content

[pull] main from pnpm:main - #478

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

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

Conversation

@pull

@pull pull Bot commented Aug 4, 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 added 2 commits August 4, 2026 21:09
… 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.
@pull pull Bot locked and limited conversation to collaborators Aug 4, 2026
@pull pull Bot added the ⤵️ pull label Aug 4, 2026
@pull
pull Bot merged commit 0238477 into dwongdev:main Aug 4, 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.

1 participant