diff options
| author | Aaron Crickenberger <spiffxp@google.com> | 2020-08-18 16:47:51 -0700 |
|---|---|---|
| committer | Aaron Crickenberger <spiffxp@google.com> | 2020-08-18 16:59:27 -0700 |
| commit | 6d0c920003581bd4c069aaf2d20ce43669f0b187 (patch) | |
| tree | a22d7262a94b8a9894d51534c4393f577f3b9177 /hack/verify-generated-docs.sh | |
| parent | 7fdf3b2df4701729df3bb09859b8aed086593f01 (diff) | |
Allow verify-generated-docs to use go modcache
I don't think we need to use an entirely separate GOPATH, thus forcing
us to re-download modules every time we run `make`
This was causing verify-generated-docs to fail locally since go will
set its modcache as readonly and thus cause the cleanup "rm -rf" in
this script to fail. In go1.14 or later we could use "-modcacherw"
to stop making the modcache readonly but that bring me back to.. why
do need an entirely separate GOPATH in the first place?
Diffstat (limited to 'hack/verify-generated-docs.sh')
| -rwxr-xr-x | hack/verify-generated-docs.sh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/hack/verify-generated-docs.sh b/hack/verify-generated-docs.sh index 81c85027..6f92c230 100755 --- a/hack/verify-generated-docs.sh +++ b/hack/verify-generated-docs.sh @@ -21,7 +21,6 @@ set -o pipefail CRT_DIR=$(pwd) VERIFY_TEMP=$(mktemp -d 2>/dev/null || mktemp -d -t k8s-community.XXXXXX) WORKING_DIR="${VERIFY_TEMP}/src/testgendocs" -GOPATH="${VERIFY_TEMP}" mkdir -p "${WORKING_DIR}" function cleanup { |
