Commit b39a0a74 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #48489 from xiangpengzhao/check-golint

Automatic merge from submit-queue (batch tested with PRs 48309, 48489) Check if golint exists first in hack/verify-golint.sh **What this PR does / why we need it**: Check if golint exists first in hack/verify-golint.sh **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #48488 **Special notes for your reviewer**: nope. **Release note**: ```release-note NONE ```
parents afc67bdb c2657197
...@@ -23,6 +23,12 @@ source "${KUBE_ROOT}/hack/lib/init.sh" ...@@ -23,6 +23,12 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::verify_go_version kube::golang::verify_go_version
if ! which golint > /dev/null; then
echo 'Can not find golint, install with:'
echo 'go get -u github.com/golang/lint/golint'
exit 1
fi
cd "${KUBE_ROOT}" cd "${KUBE_ROOT}"
array_contains () { array_contains () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment