diff --git a/README.md b/README.md index e438644f..8f2e061d 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ for moving] an existing package to this repository. - Stable, or backward compatible, API, with complete godocs. -- Go tools compliant (`go get`, `go test`, etc.). +- Go tools compliant (`go get`, `go install`, `go test`, etc.). - Very few (ideally zero) external dependencies. 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}"