Browse Source

Update check go major version way

the previous one just keep one prefix number as the major number, it should be the whole number after the dot.
pull/1200/head
charles.deng 8 years ago committed by GitHub
parent
commit
d92c21b9f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      scripts/check-go-version

2
scripts/check-go-version

@ -5,7 +5,7 @@ set -e
VERSION=$( go version )
# For development versions of Go, these will be empty.
MAJOR_GOVERSION=$( echo -n "$VERSION" | grep -o 'go1\.[0-9]' || true )
MAJOR_GOVERSION=$( echo -n "$VERSION" | grep -o 'go1\.[0-9]*' || true )
FULL_GOVERSION=$( echo -n "$VERSION" | grep -o 'go1\.[0-9|\.]*' || true )
# The list of unsupported major go versions.

Loading…
Cancel
Save