go devel support
This commit is contained in:
parent
3cd36dfaa2
commit
d178133383
11
build.sh
11
build.sh
@ -56,11 +56,12 @@ vercomp () {
|
|||||||
|
|
||||||
GOVERS="$(go version | cut -d " " -f 3)"
|
GOVERS="$(go version | cut -d " " -f 3)"
|
||||||
GOVERS="${GOVERS:2}"
|
GOVERS="${GOVERS:2}"
|
||||||
EQRES=$(vercomp "$GOVERS" "1.5")
|
if [ "$GOVERS" != "devel" ]; then
|
||||||
|
EQRES=$(vercomp "$GOVERS" "1.5")
|
||||||
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.5' 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
|
||||||
|
|
||||||
export GO15VENDOREXPERIMENT=1
|
export GO15VENDOREXPERIMENT=1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user