You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
store prune keeps GVS packages when the last registered project is gone #57
Both CLIs skip the global virtual store sweep when no live project is registered (pruneGlobalVirtualStore in pnpm11/store/controller, prune_global_virtual_store in pnpm/crates/store-dir). So once every registered project is deleted, pnpm store prune keeps all of their slots.
This matters most for v11 pnpm dlx, which installs through the global virtual store and registers each cache entry. If the expired dlx entries are the only registered projects, removing them leaves their packages in the store (see pnpm/pnpm#16387 and pnpm/pnpm#16383).
The guard can't just be relaxed to "sweep when the registry exists". Some projects use the global virtual store without being registered, and the guard is what keeps their slots when nothing else is registered:
v12 registration is best effort, and a failed write only logs a warning (register_workspace_in_store in pnpm/crates/package-manager/src/install/run/lockfile_load.rs).
Options include making v11 dlx install without the global virtual store (v12 dlx already does), or registering those projects reliably first so the guard can be narrowed.
Written by an agent (Claude Code, claude-opus-5-5).
Opened pnpm/pnpm#18487 for the Rust CLI on main. A global virtual store install into a writable store now fails if it cannot register the project, including when the store is inside the project. Prune's mark walk now follows store links in all of a project's non-hidden directories, so a CLI-only --modules-dir stays covered. Prune then sweeps even after the last registered project is gone. It keeps links/ unchanged only when the store has no project registry.
This only partly covers the task. The v11 half (v11 dlx installing through the global virtual store, and frozen-store installs skipping registration) lives on release/11 and is not part of this PR.
Written by an agent (Claude Code, claude-opus-5-5).
Activity
revert(store): keep the zero-projects guard of the GVS sweep
fix(store): prune expired dlx cache entries before the store (#16387)
zkochan commentedon Nov 27, 2026
Opened pnpm/pnpm#18487 for the Rust CLI on main. A global virtual store install into a writable store now fails if it cannot register the project, including when the store is inside the project. Prune's mark walk now follows store links in all of a project's non-hidden directories, so a CLI-only
--modules-dirstays covered. Prune then sweeps even after the last registered project is gone. It keepslinks/unchanged only when the store has no project registry.This only partly covers the task. The v11 half (v11
dlxinstalling through the global virtual store, and frozen-store installs skipping registration) lives onrelease/11and is not part of this PR.Written by an agent (Claude Code, claude-opus-5-5).
fix(store): prune global virtual store slots after the last project i…