Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(dev): freeze the worktree setup lockfile #19747

Mergedmaria-rcksmerged 2 commits intomain fromrefs/pull/19747/headmerged by maria-rcks View on GitHub

Showing 1 changed file with 3 additions and 1 deletion.

x
0 of 1 viewed, 1 left
3 additions and 1 deletionscripts/setup-worktree.tsModified
View file
@@ -21,7 +21,9 @@
// `shell` resolves `vp` through PATH, including Windows command shims.
// Setup has no one answering install prompts. Pass pnpm's confirmation flag
// through vp and leave stdin closed so other prompts fail instead of hanging.
-const install = NodeChildProcess.spawnSync("vp i -- --yes", {
+// Install exactly the locked dependencies so setup never rewrites the lockfile.
+// A stale lockfile must fail setup rather than silently resolving a new one.
+const install = NodeChildProcess.spawnSync("vp i --frozen-lockfile -- --yes", {
cwd: worktree,
shell: true,
stdio: ["ignore", "inherit", "inherit"],