From 78810ba0af62599f2b8411882c6535a3d875e71c Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Mon, 6 Jul 2026 02:25:00 +1000 Subject: [PATCH] make.tcl: restore 'shell' command guard deleted by projectversion edit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The projectversion commit accidentally removed the 'if {$::punkboot::command eq "shell"} {' guard line, orphaning the shell command body (package require punk/repl, repl::start) at top-level scope. This broke every command whose if-block lives after line 1942 (vfscommonupdate, vendorupdate, bin, project, modules, libs, packages, vfs) — they would hit the orphaned shell body and attempt to start a REPL instead of running their intended function. No behaviour change beyond restoring the guard; diff vs pre-projectversion make.tcl is now purely additive. Assisted-by: harness=opencode; primary-model=openrouter/z-ai/glm-5.2; api-location=openrouter.ai --- src/make.tcl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/make.tcl b/src/make.tcl index 7e8a29fb..c31f1c75 100644 --- a/src/make.tcl +++ b/src/make.tcl @@ -1939,6 +1939,8 @@ if {$::punkboot::command eq "projectversion"} { puts stdout $sep exit 0 } + +if {$::punkboot::command eq "shell"} { package require struct::list package require punk package require punk::repl