Skip to content

Commit b0a7db4

Browse files
committed
Squashed 'release-tools/' changes from 98f23071..406a79ac
406a79ac Merge pull request #267 from huww98/gomodcache 9cec273d Set GOMODCACHE to avoid re-download toolchain git-subtree-dir: release-tools git-subtree-split: 406a79acf021b5564108afebeea7d0ed44648d3f
1 parent 627798c commit b0a7db4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prow.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ run_with_go () {
441441
else
442442
version=local
443443
fi
444-
GOTOOLCHAIN=$version run "$@"
444+
# Set GOMODCACHE to make sure Kubernetes does not need to download again.
445+
GOTOOLCHAIN=$version GOMODCACHE="$(go env GOMODCACHE)" run "$@"
445446
}
446447

447448
# Ensure that we have the desired version of kind.

0 commit comments

Comments
 (0)