Browse Source
The testinterp replaces auto_path wholesale (project src/lib dirs, root lib_tcl<N>/<arch>, [info library] + parent). Under a kit executable that parent is e.g //zipfs:/app, and tclPkgUnknown scans only an entry plus its immediate children - so kit-bundled packages under //zipfs:/app/lib_tcl<N>/ <pkg> (e.g tcllib's tcl::chan::fifo2, required by the shellrun harness at testinterp setup) were unreachable. Unnoticed in punkshell because the project's own root lib_tcl9/win32-x86_64 carries tcllib2.0; projects without that payload (e.g tomlish) failed every file at 'package require shellrun' when run under a punk kit exe. Now the kit's internal lib/lib_tcl<N> dirs are appended when present, mirroring the internal-path classification in src/vfs/_config/punk_main.tcl: zipfs app mount, tclkit ::tcl::kitpath exe dir-shadow, cookfs //cookit:/ volume (default mount name only, as per punk_main.tcl). No-op under native tclsh. Verified: punk902z + tclsh902z suites pass; classification probed OK under tclkit 8.6.17, punk9cook (cookit), punk91 (zipfs 9.1), native Tcl903; tomlish suite under punk902z/punk91 goes 0 -> 149/149 with the same edit. Assisted-by: harness=claude; primary-model=claude-fable-5; api-location=anthropic.commaster
2 changed files with 30 additions and 0 deletions
Loading…
Reference in new issue