lemon-oxygen-2929
10/15/2024, 10:31 PMsystem_binary
and fingerprint
. Here's my target:
system_binary(
name="julia",
binary_name="julia",
fingerprint=r".*1.11.*",
fingerprint_args=["-v"],
)
Here's my binary:
% /opt/homebrew/bin/julia -v
julia version 1.11.0
Here's what happens when I run the target:
% pants run //build-support/pants:julia -- -v
16:31:31.34 [ERROR] 1 Exception encountered:
Engine traceback:
in `run` goal
ValueError: Could not find a binary with name `julia` with output matching `.*1.11.*` when run with arguments `-v`. The following paths were searched: /usr/bin, /bin, /usr/local/bin, /opt/homebrew/bin.
lemon-oxygen-2929
10/15/2024, 10:35 PMr".*1.1*0*.*"
, now it works:
% pants run //build-support/pants:julia -- -v
julia version 1.11.0
This is very surprising to me. It makes me think I'm misunderstanding how the fingerprint works.fast-nail-55400
10/15/2024, 10:47 PMfast-nail-55400
10/15/2024, 10:48 PMsystem_binary
fast-nail-55400
10/15/2024, 10:55 PMlog_fingerprinting_errors
field to system_binary
which defaults to True
and logs those errors.fast-nail-55400
10/15/2024, 10:57 PMsystem_binary
target could not find a fingerprinted binary.lemon-oxygen-2929
10/16/2024, 7:05 PMlemon-oxygen-2929
10/16/2024, 7:21 PM