File tree 1 file changed +8
-1
lines changed
.github/workflows/scripts
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -666,10 +666,17 @@ e2e_run_verifier_all_releases() {
666
666
667
667
# NOTE: clean the cache to avoid "module github.com/slsa-framework/slsa-verifier@main found" errors.
668
668
# 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.
669
670
go clean -cache
670
671
go clean -modcache
671
672
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
673
680
echo " **** Verifying provenance authenticity with verifier at HEAD *****"
674
681
verify_provenance_authenticity " slsa-verifier" " HEAD"
675
682
You can’t perform that action at this time.
0 commit comments