fix(lamassu): add bash to PATH and use setsid for turbo build
Some checks failed
nix-bitcoin tests / build_test_drivers (push) Has been cancelled
nix-bitcoin tests / check_flake (push) Has been cancelled
nix-bitcoin tests / test_scenario (default) (push) Has been cancelled
nix-bitcoin tests / test_scenario (joinmarket-bitcoind-29) (push) Has been cancelled
nix-bitcoin tests / test_scenario (netns) (push) Has been cancelled
nix-bitcoin tests / test_scenario (netnsRegtest) (push) Has been cancelled

- Add bash to PATH so node-gyp can find sh for native module builds
- Use setsid --wait for turbo build to isolate from signal propagation
  (prevents pnpm's exit code -2 when turbo calls pnpm run build)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Patrick Mulligan 2026-01-09 23:15:06 +01:00
parent 539a9069bf
commit 584f342b39

View file

@ -302,6 +302,7 @@ in
git
coreutils
gnused
bash # Provides sh for node-gyp
util-linux # for setsid
# Native build tools for node-gyp (required for utf-8-validate, bufferutil, etc.)
stdenv.cc # Full C/C++ toolchain with headers
@ -427,9 +428,10 @@ in
done
echo "==> Building project..."
# Bypass pnpm and call turbo directly to avoid pnpm signal handling issues
# Use setsid to run turbo in a new session, isolating it from signal propagation
# This prevents pnpm's signal handling issues (exit code -2) when turbo calls pnpm run build
# See: https://github.com/pnpm/pnpm/issues/7374
./node_modules/.bin/turbo build
setsid --wait ./node_modules/.bin/turbo build
echo "==> Linking admin UI static files..."
cd packages/server