Skip to content

Commit 406a79a

Browse files
authored
Merge pull request #267 from huww98/gomodcache
Set GOMODCACHE to avoid re-download toolchain
2 parents 98f2307 + 9cec273 commit 406a79a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

prow.sh

Lines changed: 2 additions & 1 deletion
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)