Support for fetching multiple tools using some declarative configuration

Open
#107 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start by reviewing the command-line argument handling and the existing download and verification flow. Define the configuration format and how parallel downloads, SHA-256 verification, chmod, final placement, and optional dependencies should work. Done should cover the requested workflow with clear error handling and installation ordering.

Written by the indexing model from the issue text.

Description

enhancement

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

Dominant language
Go
Stars
625
Forks
92
Avg merge
12h 56m
Merged PRs (30d)
2

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gruntwork-io/fetch

All issues in gruntwork-io/fetch

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.