Skip to content

Commit

Permalink
Merge pull request kubernetes#48489 from xiangpengzhao/check-golint
Browse files Browse the repository at this point in the history
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 kubernetes#48488

**Special notes for your reviewer**:
nope.

**Release note**:

```release-note
NONE
```
  • Loading branch information
Kubernetes Submit Queue authored Jul 5, 2017
2 parents afc67bd + c265719 commit b39a0a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/verify-golint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit b39a0a7

Please sign in to comment.