prehistoric-lunch-78313
06/08/2023, 2:21 AMnasm
. The executable is on my machine (go test .
succeeds), I think it's just not accessible from the pants test sandbox:
22:15:27.00 [INFO] Preserving local process execution dir /tmp/pants-sandbox-uPILeH for Run Go tests: //:myprog_pkg
22:15:27.02 [ERROR] Completed: Test with Go - //:myprog_pkg - failed (exit code 1).
--- FAIL: TestCompiledInt (0.01s)
compile_test.go:19: unexpected error: nasm failed: exec: "nasm": executable file not found in $PATH
FAIL
Is there a way to either modify the $PATH for the sandbox or explicitly tell it to pull nasm
inside the sandbox?prehistoric-lunch-78313
06/08/2023, 2:26 AMbroad-processor-92400
06/08/2023, 2:31 AMsystem_binary(name="nasm", binary_name="nasm") # can use fingerprint... to ensure a correct version
go_test(..., dependencies=[":nasm"])
Maybe! I'm not 100% sure if that'll come through in the PATH though.prehistoric-lunch-78313
06/08/2023, 2:34 AMprehistoric-lunch-78313
06/08/2023, 2:54 AMbroad-processor-92400
06/08/2023, 2:57 AMprehistoric-lunch-78313
06/08/2023, 3:01 AMenough-analyst-54434
06/08/2023, 7:00 AMenough-analyst-54434
06/08/2023, 7:01 AMprehistoric-lunch-78313
06/09/2023, 1:48 AM