Skip to content

Commit

Permalink
Merge pull request #267 from huww98/gomodcache
Browse files Browse the repository at this point in the history
Set GOMODCACHE to avoid re-download toolchain
  • Loading branch information
k8s-ci-robot authored Dec 10, 2024
2 parents 98f2307 + 9cec273 commit 406a79a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ run_with_go () {
else
version=local
fi
GOTOOLCHAIN=$version run "$@"
# Set GOMODCACHE to make sure Kubernetes does not need to download again.
GOTOOLCHAIN=$version GOMODCACHE="$(go env GOMODCACHE)" run "$@"
}

# Ensure that we have the desired version of kind.
Expand Down

0 comments on commit 406a79a

Please sign in to comment.