We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 242ce12 commit f2604ddCopy full SHA for f2604dd
hack/verify-golint.sh
@@ -24,9 +24,13 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
24
kube::golang::verify_go_version
25
26
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
+ # Ensure that we find the binaries we build before anything else.
+ export GOBIN="${KUBE_OUTPUT_BINPATH}"
+ 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
35
36
cd "${KUBE_ROOT}"
0 commit comments