Add a Ruby script for downloading cargo-about #14
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes some flakes in CI and the nightly builder where curl fails to
fetch release metadata from GitHub with:
Add Ruby script for downloading cargo-about
Downloading release information with curl and piping it to jq is flaky
in CI and in the nightly builder, sometimes resulting in 403 errors that
curl treats as unrecoverable.
curl has a
--retry-all-errors
flag but it is unavailable on Windows orUbuntu 20.04.
Add a small Ruby script using only the standard library that is
installed as part of the
generate_third_party
gem. This scriptfeatures retries on network errors, logging with log GitHub Actions log
groups, and automatically adds the resulting cargo-about binaries to
$PATH.
The script takes a platform as its first argument which conveniently
matches the
runner.os
context variable in a GitHub Actions context.