diff --git a/hack/verify-spelling.sh b/hack/verify-spelling.sh index f43626e7c..56eb395f9 100644 --- a/hack/verify-spelling.sh +++ b/hack/verify-spelling.sh @@ -31,6 +31,8 @@ PATH="${GOBIN}:${PATH}" # Install tools we need pushd "${KUBE_ROOT}/hack/tools" >/dev/null + # As GOFLAGS may equal to `-mod=vendor`, we must download the modules to vendor or go install will fail. + go mod vendor GO111MODULE=on go install github.com/client9/misspell/cmd/misspell popd >/dev/null