Commit c2657197 authored by xiangpengzhao's avatar xiangpengzhao

Check if golint exists first in hack/verify-golint.sh

parent bd53fb6f
...@@ -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