Skip to content

Commit f2604dd

Browse files
committed
install golint from vendor
1 parent 242ce12 commit f2604dd

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

hack/verify-golint.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
2424
kube::golang::verify_go_version
2525

2626
if ! which golint > /dev/null; then
27-
echo 'Can not find golint, install with:'
28-
echo 'go get -u golang.org/x/lint/golint'
29-
exit 1
27+
# Ensure that we find the binaries we build before anything else.
28+
export GOBIN="${KUBE_OUTPUT_BINPATH}"
29+
PATH="${GOBIN}:${PATH}"
30+
31+
# Install golint from vendor
32+
echo 'Can not find golint, installing from vendor'
33+
go install k8s.io/kubernetes/vendor/golang.org/x/lint/golint
3034
fi
3135

3236
cd "${KUBE_ROOT}"

0 commit comments

Comments
 (0)