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

brash-baker-91190

05/19/2022, 6:52 PM
Is there a way to get the path to an installed binary that Pants manages as a tool? I'm curious if there's a shortcut I could take to getting
buf
to perform a breaking-changes check on our protobufs short of diving into Pants code to implement it, maybe via
experimental_shell_command
?
h

happy-kitchen-89482

05/19/2022, 7:38 PM
I don't think there's an easy way, because
buf
is only downloaded on demand, so you need to fetch it with something like
Copy code
downloaded_buf = await Get(
        DownloadedExternalTool, ExternalToolRequest, buf.get_request(Platform.current)
    )
b

brash-baker-91190

05/19/2022, 7:39 PM
Ah, yeah, that makes sense.
If I have some time, I may go digging through the code for this.
thanks @happy-kitchen-89482
6 Views