Skip to content

Commit 6b7ccc9

Browse files
committed
always use golint from vendor
1 parent f2604dd commit 6b7ccc9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

hack/verify-golint.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
2323

2424
kube::golang::verify_go_version
2525

26-
if ! which golint > /dev/null; then
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
34-
fi
26+
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 'installing golint from vendor'
33+
go install k8s.io/kubernetes/vendor/golang.org/x/lint/golint
34+
3535

3636
cd "${KUBE_ROOT}"
3737

0 commit comments

Comments
 (0)