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

This commit is contained in:
xiangpengzhao 2017-07-05 14:17:04 +08:00
parent bd53fb6f66
commit c265719759

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 () {