mirror of https://github.com/k3s-io/k3s
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
commit
b39a0a7482
|
@ -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 () {
|
||||||
|
|
Loading…
Reference in New Issue