go devel support

This commit is contained in:
Josh Baker 2016-03-17 12:02:10 -07:00
parent 3cd36dfaa2
commit d178133383
1 changed files with 6 additions and 5 deletions

View File

@ -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