Closed graphaelli closed 5 years ago
DownloadFile is generic enough, that I'd like to make it a little more 'configurable' + expose some settings to the CLI (e.g. timeout, number of retries, backoff).
Currently the function is only used by (*Manager).installBinary
, which is used by gvm use
, and gvm install
.
@urso do you prefer to do that all now or good with merging this in as is? I intentionally avoided changing the signature of DownloadFile
just in case. Please feel free to merge/close either way.
@graphaelli Do you want to make a release with this?
This is what I've done in the past.
All set, thanks for the great instructions. For the final step, did that from https://github.com/andrewkroh/gvm/releases/new?tag=v0.2.0. Please let me know if I missed anything
LGTM. Thanks for doing it.
and set timeout on http get.
In an attempt to combat CI issues like: