twpayne / chezmoi

Manage your dotfiles across multiple diverse machines, securely.
https://www.chezmoi.io/
MIT License
13.2k stars 493 forks source link

Download externals concurrently #2670

Open twpayne opened 1 year ago

twpayne commented 1 year ago

Is your feature request related to a problem? Please describe.

chezmoi downloads externals serially. Downloading externals takes time, and this can lead to long pauses in chezmoi's progress (#2369). It would be nice if this overall process could be faster.

Describe the solution you'd like

chezmoi should download externals concurrently, subject to some externally-specified sensible limit (e.g. number of simultaneous concurrent downloads).

Describe alternatives you've considered

Keeping things as they are.

Additional context

Programs like curl and aria2 are much more advanced. Maybe, as well as enabling concurrent downloads, chezmoi could include a download plugin option.

halostatue commented 1 year ago

Possible with go channels?