Skip to content

Commit 06a8901

Browse files
committed
fix(ci): patchShebangs for the Node CLI in test-js
The Garnix linux sandbox has no /usr/bin/env, so invoking ./bin/printable-binary-node.js via its '#!/usr/bin/env node' shebang failed (exit 126). patchShebangs rewrites it to the nix node before running test/test. (Passed locally on darwin only because macOS has /usr/bin/env.)
1 parent c1e1b3f commit 06a8901

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

flake.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@
303303
nativeBuildInputs = with pkgs; [ nodejs_24 python3 xxd hexdump ];
304304
buildPhase = ''
305305
export HOME=$TMPDIR
306+
patchShebangs bin/printable-binary-node.js
306307
IMPLEMENTATION_TO_TEST=./bin/printable-binary-node.js bash ./test/test
307308
'';
308309
installPhase = "mkdir -p $out && touch $out/passed";

0 commit comments

Comments
 (0)