better-sunset-63499
02/15/2022, 5:17 PMfile
or resource
that allows pulling from a URL? I see jvm_artifact
has a url=
option for pulling third-party jars, and in a plugin you are given DownloadFile
https://www.pantsbuild.org/docs/rules-api-file-system#downloadfile if you write a custom pluginhundreds-father-404
02/15/2022, 5:18 PMbetter-sunset-63499
02/15/2022, 5:18 PMpackage
step I have a mapping file generated by another team that needs to be included in the final artifact, but I don't want it committed my team's repo. They currently have it available at a URL (yay!) and today it's downloaded in a bash scripthundreds-father-404
02/15/2022, 5:19 PMexperimental_shell_command
, I believe: https://www.pantsbuild.org/v2.10/docs/run-shell-commandsbetter-sunset-63499
02/15/2022, 5:19 PMbetter-sunset-63499
02/15/2022, 5:19 PMexperimental_*
means right?happy-kitchen-89482
02/15/2022, 5:24 PMexperimental_
stuff is usable, it just might not have a stable API yet, or it might be missing features or documentation.hundreds-father-404
02/15/2022, 5:24 PMexperimental_shell_command
in production fine.
Re experimental_shell_command
vs the proposal at https://github.com/pantsbuild/pants/issues/13589, that ticket would give you a more first class way to do things. No need for you to define the experimental_shell_command
logic which would probably need to do something like use curl
, then would be good to use shasum
to validate that the file is expected (supply chain attacks). Pants would do all that heavy lifting for you. Both work, but latter is more convenienthappy-kitchen-89482
02/15/2022, 5:25 PMbetter-sunset-63499
02/15/2022, 5:33 PM