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 e31de525b..90efb2ca5
90efb2ca5 Merge pull request #272 from andyzhangx/patch-3
9b616fec4 Bump golang to 1.23.6 to fix CVE-2024-45336, CVE-2025-22866
049659326 Merge pull request #268 from huww98/cloudbuild
119aee1ff Merge pull request #266 from jsafrane/bump-sanity-5.3.1
0ae5e52d9 Update cloudbuild image with go 1.21+
406a79acf Merge pull request #267 from huww98/gomodcache
9cec273d8 Set GOMODCACHE to avoid re-download toolchain
98f23071d Merge pull request #260 from TerryHowe/update-csi-driver-version
e9d8712d0 Merge pull request #259 from stmcginnis/deprecated-kind-kube-root
faf79ff66 Remove --kube-root deprecated kind argument
734c2b950 Merge pull request #265 from Rakshith-R/consider-main-branch
43bde065f Bump csi-sanity to 5.3.1
f95c855be Merge pull request #262 from huww98/golang-toolchain
3c8d966fe Treat main branch as equivalent to master branch
6b05f0fcc use new GOTOOLCHAIN env to manage go version
18b6ac6d2 chore: update CSI driver version to 1.15
git-subtree-dir: release-tools
git-subtree-split: 90efb2ca59900f19eba05e65da28beda79c5bb28
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.23.1""Go version for building the component"# depends on component's source code
89
+
configvar CSI_PROW_GO_VERSION_BUILD "1.23.6""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
configvar CSI_PROW_SANITY_SERVICE "hostpath-service""Kubernetes TCP service name that exposes csi.sock"
249
249
configvar CSI_PROW_SANITY_POD "csi-hostpathplugin-0""Kubernetes pod with CSI driver"
@@ -425,23 +425,24 @@ 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