mirror of https://github.com/tidwall/tile38.git
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="${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
|
||||
|
|
Loading…
Reference in New Issue