Demand at least go1.6

This commit is contained in:
Tim Hockin
2016-04-22 22:37:32 -07:00
parent cbf886c7f4
commit 527cb50583
8 changed files with 37 additions and 86 deletions

View File

@@ -21,13 +21,9 @@ set -o nounset
set -o pipefail
KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
source "${KUBE_ROOT}/hack/lib/init.sh"
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
fi
kube::golang::verify_go_version
cd "${KUBE_ROOT}"