diff --git a/hack/verify-apidiff.sh b/hack/verify-apidiff.sh index c49370bd..5177dd6e 100755 --- a/hack/verify-apidiff.sh +++ b/hack/verify-apidiff.sh @@ -65,7 +65,7 @@ fi if ! which apidiff > /dev/null; then echo "Installing golang.org/x/exp/cmd/apidiff..." pushd "${TMPDIR:-/tmp}" > /dev/null - go get golang.org/x/exp/cmd/apidiff + go install golang.org/x/exp/cmd/apidiff@latest popd > /dev/null fi diff --git a/hack/verify-golint.sh b/hack/verify-golint.sh index bce12398..5bc66936 100755 --- a/hack/verify-golint.sh +++ b/hack/verify-golint.sh @@ -23,7 +23,7 @@ source "${KUBE_ROOT}/hack/lib/util.sh" if ! which golint > /dev/null; then echo "installing golint" - go get golang.org/x/lint/golint + go install golang.org/x/lint/golint@latest fi cd "${KUBE_ROOT}"