Skip to content

Commit

Permalink
Update Golang version on MacOS when running Kokoro tests. (#19)
Browse files Browse the repository at this point in the history
* Update Golang version on MacOS when running Kokoro tests.

* Try adjusting how we set the path.

* Delete commented out code.
  • Loading branch information
matthewstevenson88 authored May 27, 2022
1 parent 0418821 commit 9ceffdc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/internal_ci/run_golang_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
;;
Expand Down

0 comments on commit 9ceffdc

Please sign in to comment.