You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Squashed 'release-tools/' changes from e31de525..734c2b95
734c2b95 Merge pull request kubernetes-csi#265 from Rakshith-R/consider-main-branch
f95c855b Merge pull request kubernetes-csi#262 from huww98/golang-toolchain
3c8d966f Treat main branch as equivalent to master branch
6b05f0fc use new GOTOOLCHAIN env to manage go version
git-subtree-dir: release-tools
git-subtree-split: 734c2b950c4b31f64b63052c64ffa5929d1c9b97
Copy file name to clipboardExpand all lines: prow.sh
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -425,23 +425,23 @@ die () {
425
425
exit 1
426
426
}
427
427
428
-
# Ensure that PATH has the desired version of the Go tools, then run command given as argument.
428
+
# Ensure we use the desired version of the Go tools, then run command given as argument.
429
429
# Empty parameter uses the already installed Go. In Prow, that version is kept up-to-date by
430
430
# bumping the container image regularly.
431
431
run_with_go () {
432
432
local version
433
433
version="$1"
434
434
shift
435
435
436
-
if! [ "$version" ] || go version 2>/dev/null | grep -q "go$version";then
437
-
run "$@"
438
-
else
439
-
if! [ -d"${CSI_PROW_WORK}/go-$version" ];then
440
-
run curl --fail --location "https://dl.google.com/go/go$version.linux-amd64.tar.gz"| tar -C "${CSI_PROW_WORK}" -zxf - || die "installation of Go $version failed"
0 commit comments