From 7ee9db18f195a533914d703fa8b21f3518ffd7f2 Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Thu, 26 Sep 2019 15:03:26 -0400 Subject: [PATCH] internal: drop support for 1.9 and 1.10 (#201) As of Oct 1, 2019 GCP is no longer supporting Go 1.9 and 1.10. Cleaning up build scripts to support this. --- internal/kokoro/test.sh | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/internal/kokoro/test.sh b/internal/kokoro/test.sh index 81922ffaf2..173d0eede6 100755 --- a/internal/kokoro/test.sh +++ b/internal/kokoro/test.sh @@ -15,27 +15,18 @@ go version export GOPATH="$HOME/go" export GENPROTO_HOME=$GOPATH/src/google.golang.org/genproto export PATH="$GOPATH/bin:$PATH" +export GO111MODULE=on mkdir -p $GENPROTO_HOME + # Move code into $GOPATH and get dependencies git clone . $GENPROTO_HOME cd $GENPROTO_HOME try3() { eval "$*" || eval "$*" || eval "$*"; } -download_deps() { - if [[ `go version` == *"go1.11"* ]] || [[ `go version` == *"go1.12"* ]]; then - export GO111MODULE=on - # All packages, including +build tools, are fetched. - try3 go mod download - else - # Because we don't provide -tags tools, the +build tools - # dependencies aren't fetched. - try3 go get -v -t ./... - fi -} - -download_deps +# All packages, including +build tools, are fetched. +try3 go mod download ./internal/kokoro/vet.sh # Run tests and tee output to log file, to be pushed to GCS as artifact.