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
configvar GOFLAGS_VENDOR "$( [ -d vendor ] &&echo'-mod=vendor')""Go flags for using the vendor directory"
88
88
89
-
configvar CSI_PROW_GO_VERSION_BUILD "1.22.3""Go version for building the component"# depends on component's source code
89
+
configvar CSI_PROW_GO_VERSION_BUILD "1.23.1""Go version for building the component"# depends on component's source code
90
90
configvar CSI_PROW_GO_VERSION_E2E """override Go version for building the Kubernetes E2E test suite"# normally doesn't need to be set, see install_e2e
91
91
configvar CSI_PROW_GO_VERSION_SANITY "${CSI_PROW_GO_VERSION_BUILD}""Go version for building the csi-sanity test suite"# depends on CSI_PROW_SANITY settings below
92
92
configvar CSI_PROW_GO_VERSION_KIND "${CSI_PROW_GO_VERSION_BUILD}""Go version for building 'kind'"# depends on CSI_PROW_KIND_VERSION below
# csi-sanity testing from the csi-test repo can be run against the installed
238
241
# CSI driver. For this to work, deploying the driver must expose the Unix domain
@@ -422,23 +425,24 @@ die () {
422
425
exit 1
423
426
}
424
427
425
-
# 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.
426
429
# Empty parameter uses the already installed Go. In Prow, that version is kept up-to-date by
427
430
# bumping the container image regularly.
428
431
run_with_go () {
429
432
local version
430
433
version="$1"
431
434
shift
432
435
433
-
if! [ "$version" ] || go version 2>/dev/null | grep -q "go$version";then
434
-
run "$@"
435
-
else
436
-
if! [ -d"${CSI_PROW_WORK}/go-$version" ];then
437
-
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