Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for fetching multiple tools using some declarative configuration #107

Open
iilyak opened this issue Apr 26, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@iilyak
Copy link

iilyak commented Apr 26, 2022

Describe the solution you'd like

Add command line argument to specify a configuration file which would contain list of repositories to download in parallel.
My use case is to bootstrap environment using following algorithm.

  1. download a bunch of tools and verify sha256 of each downloaded artifact.
  2. Then do chmod +x for each one of them.
  3. Finally only iff sha256 is verified move the file to its final destination

Bonus feature: Ability to specify dependencies between the tools to establish right installation order.

Describe alternatives you've considered

  1. use jq to get list of targets and sha and combine it with shell scripts involving sha256,chmod,curl
  2. put urls and SHAs into a bash array and iterate over in a function

None of the above solutions would be portable enough, cannot provide parallel downloads and decent error handling.

Additional context

There are similar tools. However there is none which do both batch artifact download and verification:

Less relevant tools

@iilyak iilyak added the enhancement New feature or request label Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant