From 8a6db1cc6cbce0762e491752234dcc5e3e9c6653 Mon Sep 17 00:00:00 2001 From: NitishKumar06 Date: Wed, 30 Aug 2023 17:28:44 +0530 Subject: [PATCH 1/2] Transfer go get to go install --- README.md | 2 +- hack/verify-apidiff.sh | 2 +- hack/verify-golint.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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}" From be5d99ea5a32e81cb3faf9f6a67470b582a234be Mon Sep 17 00:00:00 2001 From: NitishKumar06 Date: Tue, 12 Sep 2023 23:02:42 +0530 Subject: [PATCH 2/2] remove go install Signed-off-by: NitishKumar06 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8f2e061d..e438644f 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 install`, `go test`, etc.). +- Go tools compliant (`go get`, `go test`, etc.). - Very few (ideally zero) external dependencies.