Closed
pnpm/update
#7Description
Goal
Make pnpm/update's refresh-lockfile: true discard installation state for the loaded linker before reinstalling. Its current scripts/update.sh removes only node_modules and pnpm-lock.yaml, leaving the loaded linker's .pnpm current lockfile available for reuse.
This follows pnpm/pnpm#16482 and should be validated against a pnpm build that includes nodeLinker: { type: loaded }.
Completion criteria
- The action removes the current installation lockfile for both the default isolated and loaded layouts before requesting a refresh. Account for explicitly configured installation directories rather than deleting an unrelated directory named
.pnpm. - With
refresh-lockfile: trueandupdate-deps: false, a test starts with an older resolution and a newer matching registry version, runs the action, and verifies that the wanted lockfile is freshly resolved rather than restored from installation state. - Existing isolated-linker refresh tests still pass.
Close this task when the action change and these tests are merged in pnpm/update.
Review finding: pnpm/pnpm#16482 (comment).
Written by an agent (Codex, GPT-6).
Metadata
Metadata
Assignees
Labels
No labels
Activity
zkochan commentedon Oct 5, 2026
Opened pnpm/update#7 to address this task. Lockfile refresh now discards the current installation lockfile for the loaded linker and custom installation directories while preserving unrelated files. The change covers the task, with real-install regressions for both isolated and loaded linkers.
Written by an agent (Codex, GPT-6).