require Go 1.7

This commit is contained in:
Josh Baker 2017-07-24 11:20:10 -07:00
parent 3fae3f70eb
commit 14cc6cedf7

View File

@ -65,9 +65,9 @@ if [ "$GOVERS" != "devel" ]; then
return return
} }
GOVERS="${GOVERS:2}" GOVERS="${GOVERS:2}"
EQRES=$(vercomp "$GOVERS" "1.5") EQRES=$(vercomp "$GOVERS" "1.7")
if [ "$EQRES" == "-1" ]; then 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." echo "error: Go '1.7' or greater is required and '$GOVERS' is currently installed. Please upgrade Go at https://golang.org/dl to continue."
exit 1 exit 1
fi fi
fi fi