<#20654 system_binary not finding binary in path> ...
# github-notifications
c
#20654 system_binary not finding binary in path Issue created by jasonwbarnett Describe the bug I have this
BUILD
file
Copy code
system_binary(
    name="pulumi",
    binary_name="pulumi",
    fingerprint=r"^v3\.",
    fingerprint_args=["version"],
)
Copy code
$ pants package apps/app1:docker
22:05:53.95 [ERROR] 1 Exception encountered:

Engine traceback:
  in `package` goal

ValueError: Could not find a binary with name `pulumi` with output matching `^v3\.` when run with arguments `version`. The following paths were searched: /usr/bin, /bin, /usr/local/bin, /opt/homebrew/bin.
Copy code
$ /usr/local/bin/pulumi version
v3.108.1
After adding
/usr/local/bin
to
extra_search_paths
it works
Copy code
system_binary(
    name="pulumi",
    binary_name="pulumi",
    extra_search_paths=["/usr/local/bin"],
    fingerprint=r"^v3\.",
    fingerprint_args=["version"],
)
I would expect either the error message not to mention
/usr/local/bin
being in the search path (if not being used) or to properly use the search path. Pants version 2.19 OS Mac OS and Linux pantsbuild/pants