Skip to content

Commit 8e00a21

Browse files
author
Ian Lewis
committed
Retry go install. Refs #212
Signed-off-by: Ian Lewis <[email protected]>
1 parent f990e50 commit 8e00a21

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/scripts/e2e-verify.common.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -666,10 +666,17 @@ e2e_run_verifier_all_releases() {
666666

667667
# NOTE: clean the cache to avoid "module github.com/slsa-framework/slsa-verifier@main found" errors.
668668
# See: https://stackoverflow.com/questions/62974985/go-module-latest-found-but-does-not-contain-package
669+
# TODO(#212): remove once we understand why go install doesn't work.
669670
go clean -cache
670671
go clean -modcache
671672

672-
go install "github.com/${verifier_repository}/v2/cli/slsa-verifier@main"
673+
# TODO(#212): remove retries once we understand why go install doesn't work.
674+
for _ in 1 2 3 4 5; do
675+
if go install "github.com/${verifier_repository}/v2/cli/slsa-verifier@main"; then
676+
break
677+
fi
678+
echo "ERROR: Failed to go-install slsa-verifier. retrying...."
679+
done
673680
echo "**** Verifying provenance authenticity with verifier at HEAD *****"
674681
verify_provenance_authenticity "slsa-verifier" "HEAD"
675682

0 commit comments

Comments
 (0)