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
```
pull/6/head
Kubernetes Submit Queue 2017-07-05 15:50:12 -07:00 committed by GitHub
commit b39a0a7482
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
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}"
array_contains () {