Hi, newbie question: Is there a way to manage exte...
# general
b
Hi, newbie question: Is there a way to manage external binaries/tools without plugins in a similar fashion to what ExternalTool allows for plugins?
f
For which language?
A "runnable" for purposes of the
adhoc_tool
target type includes targets like
python_requirement
and
jvm_artifact
.
So you can run tools directly out of the relevant resolve.
b
I am looking for a way to download and deploy binaries from external sources. Ideally with all the goodies that ExternalTool has, like platform dependent locations, checksum check etc.
I was wondering whether I could wire
file
to
adhoc_tool
, but also that would not have the same features AFAICT.
b
`file`'s
source
supports
per_platform
and
http_source
that can do that downloading: https://www.pantsbuild.org/stable/reference/targets/file#source Here's an example from the Pants repo: https://github.com/pantsbuild/pants/blob/9dc2fb15bc52bc348c70c8a6082943822b4d4435/3rdparty/tools/act/BUILD#L8-L36 The rest of that file might be interesting too, in terms of extracting and setting up the
act
binary
b
Thanks, this is pretty much what I had been looking for.
👍 1