mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Check if golint exists first in hack/verify-golint.sh
This commit is contained in:
parent
bd53fb6f66
commit
c265719759
@ -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 () {
|
||||
|
Loading…
Reference in New Issue
Block a user