diff --git a/tools/internal_ci/run_golang_tests.sh b/tools/internal_ci/run_golang_tests.sh index 351b882..2b81013 100755 --- a/tools/internal_ci/run_golang_tests.sh +++ b/tools/internal_ci/run_golang_tests.sh @@ -46,6 +46,14 @@ main() { export GOROOT=/usr/local/go export PATH=$PATH:$GOROOT/bin ;; + 'darwin') + sudo rm -rf /usr/local/go + curl -O https://dl.google.com/go/go1.17.1.darwin-amd64.tar.gz + tar -xvf go1.17.1.darwin-amd64.tar.gz + sudo mv go /usr/local + export GOROOT=/usr/local/go + export PATH="${GOROOT}/bin:${PATH}" + ;; *) echo "Using existing Go installation." ;;