add retry to make install more reliable

This commit is contained in:
Jade Ellis 2025-01-23 14:23:23 +00:00
parent 8132b98ac3
commit ee6fde8f51
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -41,7 +41,7 @@ ENV LDDTREE_VERSION=0.3.7
# Install unpackaged tools
RUN <<EOF
curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
curl --retry 5 -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash
cargo binstall --no-confirm cargo-sbom --version $CARGO_SBOM_VERSION
cargo binstall --no-confirm lddtree --version $LDDTREE_VERSION
EOF