diff options
| author | Jonathan Amsterdam <jba@google.com> | 2021-08-23 09:58:37 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2021-08-23 14:52:09 +0000 |
| commit | d20fcb3bb1452c72b5c844db3d444f06fccc8a4a (patch) | |
| tree | 79faffcef0469ded4b259ba10b5eaaf45be17ee1 /devtools | |
| parent | 0a8194a898a1ceff6a0b29e3419650daf43d8567 (diff) | |
| download | go-x-pkgsite-d20fcb3bb1452c72b5c844db3d444f06fccc8a4a.tar.xz | |
devtools/go.sh: check for go 1.16
Change-Id: If18727eb090f66e68ff153b472b051eaf1a84b3c
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/344393
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jamal Carvalho <jamal@golang.org>
Diffstat (limited to 'devtools')
| -rwxr-xr-x | devtools/go.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/devtools/go.sh b/devtools/go.sh index d5285a08..0ddf0fa6 100755 --- a/devtools/go.sh +++ b/devtools/go.sh @@ -18,17 +18,16 @@ set -e gocmd="dockercompose run go" if type go > /dev/null; then - # pkgsite requires go1.15 or higher. If that's installed on the machine, just + # pkgsite requires go1.16 or higher. If that's installed on the machine, just # use the local go since it will be faster. # kokoro run go1.12. # # This awk program splits the third whitespace-separated field # (e.g. "go1.15.5") on the dot character and prints the second part. v=`go version | awk '{split($3, parts, /\./); print parts[2]}'` - if (( v >= 15 )); then + if (( v >= 16 )); then gocmd=go fi; fi; $gocmd $@ - |
