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
[BUG] post-create.sh masks failures (false 'tsx installed') and assumes apt/Debian base — breaks on Nix devcontainer #30
Found while live-testing the vigOS devcontainer Nix migration (vig-os/devcontainer feature/625-nix-claude-migration) against this repo. Two related problems in .devcontainer/scripts/post-create.sh:
Silent failure / false success. The tsx step runs npm install -g tsx >/dev/null 2>&1 and then reports tsx installed (<version>) using a version probe that falls back to "" on failure. On the new image the global install lands in an off-PATH location (see [BUG] npm global prefix points at off-PATH Nix store — npm install -g silently invisible devkit#728), so tsx is not actually available, yet the script prints tsx installed () and exits 0. Failures are masked.
Assumes a Debian/apt base. The Node.js install path uses apt-get / deb.nodesource.com. The migrated image is hermetic Nix with no apt (and Node is already baked in). The command -v node guard happens to skip apt here, but the script is not portable to the new base and would break if the guard ever falls through.
Steps to Reproduce
Point .devcontainer/docker-compose.yml at the Nix image (ghcr.io/vig-os/devcontainer:dev).
Start the container and run .devcontainer/scripts/post-create.sh.
Observe tsx installed () (empty version) and exit 0, but command -v tsx → not found.
Expected Behavior
post-create.sh fails loudly if a required tool (tsx) isn't actually installed/available, and does not assume apt.
Actual Behavior
Errors are swallowed; the script reports success while tsx is missing. The build/test pipeline itself (npm ci && npm run build && npm test, 80/80) passes on the Nix image once /usr/bin/env exists (vig-os/devkit#727).
Activity
build(devkit): adopt vigOS devkit 1.1.0 (direnv) — rollout pilot (#32)