From d17813338327f8e844198a9d89eaa57264566360 Mon Sep 17 00:00:00 2001 From: Josh Baker Date: Thu, 17 Mar 2016 12:02:10 -0700 Subject: [PATCH] go devel support --- build.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/build.sh b/build.sh index fd913abb..4661128d 100755 --- a/build.sh +++ b/build.sh @@ -56,11 +56,12 @@ vercomp () { GOVERS="$(go version | cut -d " " -f 3)" GOVERS="${GOVERS:2}" -EQRES=$(vercomp "$GOVERS" "1.5") - -if [ "$EQRES" == "-1" ]; then - echo "error: Go '1.5' or greater is required and '$GOVERS' is currently installed. Please upgrade Go at https://golang.org/dl to continue." - exit 1 +if [ "$GOVERS" != "devel" ]; then + EQRES=$(vercomp "$GOVERS" "1.5") + if [ "$EQRES" == "-1" ]; then + echo "error: Go '1.5' or greater is required and '$GOVERS' is currently installed. Please upgrade Go at https://golang.org/dl to continue." + exit 1 + fi fi export GO15VENDOREXPERIMENT=1