https://pantsbuild.org/ logo
#general
Title
# general
r

ripe-cpu-85141

08/30/2022, 2:56 PM
Hello, I have a small problem related to where git is installed. One of my colleagues has his git executable installed under /opt/git/bin and pants complains that it can't find the git executable. The list of search paths shown on the error message doesn't contain /opt/git/bin even if set in the PATH env variable of the shell. Is there an option like [python-bootstrap].search_path for git?
r

ripe-cpu-85141

08/30/2022, 3:01 PM
😨
f

fast-nail-55400

08/30/2022, 3:04 PM
Copy code
# TODO(#14492): This should be configurable via `[system-binaries]` subsystem, likely per-binary.
SEARCH_PATHS = ("/usr/bin", "/bin", "/usr/local/bin")
sounds like the user has a use case that matches the TODO ... I would suggest for now that the user symlink
/usr/local/bin/git
to point at
/opt/git/bin
r

ripe-cpu-85141

08/30/2022, 3:06 PM
not lucky today 🙂 Thanks!