Skip to content

Commit e7106e6

Browse files
authored
Merge pull request #290 from nitishfy/Nitish/go-get-deprecated
Transfer go get to go install
2 parents b307cd5 + be5d99e commit e7106e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hack/verify-apidiff.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ fi
6565
if ! which apidiff > /dev/null; then
6666
echo "Installing golang.org/x/exp/cmd/apidiff..."
6767
pushd "${TMPDIR:-/tmp}" > /dev/null
68-
go get golang.org/x/exp/cmd/apidiff
68+
go install golang.org/x/exp/cmd/apidiff@latest
6969
popd > /dev/null
7070
fi
7171

hack/verify-golint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ source "${KUBE_ROOT}/hack/lib/util.sh"
2323

2424
if ! which golint > /dev/null; then
2525
echo "installing golint"
26-
go get golang.org/x/lint/golint
26+
go install golang.org/x/lint/golint@latest
2727
fi
2828

2929
cd "${KUBE_ROOT}"

0 commit comments

Comments
 (0)