From c36e965c453a4a31d4f5dbc9db59b22a93248d03 Mon Sep 17 00:00:00 2001 From: gmarek Date: Thu, 7 Apr 2016 23:38:14 -0400 Subject: [PATCH] Change the go version checking in go format to the same as in contrib. --- hack/verify-gofmt.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/verify-gofmt.sh b/hack/verify-gofmt.sh index 014035efabf..0f0745ddfd9 100755 --- a/hack/verify-gofmt.sh +++ b/hack/verify-gofmt.sh @@ -24,9 +24,9 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/.. GO_VERSION=($(go version)) -if [[ -n $(echo "${GO_VERSION[2]}" | grep -E 'go1.1|go1.2|go1.3') ]]; then - echo "Unsupported go version '${GO_VERSION}', skipping gofmt." - exit 0 +if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.4|go1.6') ]]; then + echo "Unsupported go version '${GO_VERSION[2]}', skipping gofmt." + exit 1 fi cd "${KUBE_ROOT}"