Use setsid to create new session for pnpm commands
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

This commit is contained in:
Patrick Mulligan 2026-01-09 22:59:02 +01:00
parent 96e0df2523
commit 4f5b13e4f3

View file

@ -302,6 +302,7 @@ in
git git
coreutils coreutils
gnused gnused
util-linux # for setsid
# Native build tools for node-gyp (required for utf-8-validate, bufferutil, etc.) # Native build tools for node-gyp (required for utf-8-validate, bufferutil, etc.)
stdenv.cc # Full C/C++ toolchain with headers stdenv.cc # Full C/C++ toolchain with headers
gnumake gnumake
@ -408,14 +409,14 @@ in
fi fi
echo "==> Installing dependencies with pnpm (without scripts)..." echo "==> Installing dependencies with pnpm (without scripts)..."
pnpm install --no-frozen-lockfile --ignore-scripts setsid pnpm install --no-frozen-lockfile --ignore-scripts
echo "==> Running native module builds..." echo "==> Running native module builds..."
# Run rebuild separately - this compiles native modules # Run rebuild separately - this compiles native modules
pnpm rebuild || echo "Warning: Some native modules failed to build, continuing anyway..." setsid pnpm rebuild || echo "Warning: Some native modules failed to build, continuing anyway..."
echo "==> Building project..." echo "==> Building project..."
pnpm build setsid pnpm build
echo "==> Linking admin UI static files..." echo "==> Linking admin UI static files..."
cd packages/server cd packages/server