From d20fcb3bb1452c72b5c844db3d444f06fccc8a4a Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Mon, 23 Aug 2021 09:58:37 -0400 Subject: devtools/go.sh: check for go 1.16 Change-Id: If18727eb090f66e68ff153b472b051eaf1a84b3c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/344393 Trust: Jonathan Amsterdam Run-TryBot: Jonathan Amsterdam TryBot-Result: kokoro Reviewed-by: Jamal Carvalho --- devtools/go.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'devtools') 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 $@ - -- cgit v1.3