Skip to content

Commit

Permalink
Update go version
Browse files Browse the repository at this point in the history
  • Loading branch information
psx95 committed Dec 12, 2022
1 parent 3dd65e9 commit ff88393
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions system-test/integration_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,23 @@ export GOOGLE_APPLICATION_CREDENTIALS="${SERVICE_KEY}"
# Run test.
cd "system-test"

go version

# Ensure a newer version of Go is used so it is compatible with newer libraries.
# Here we install v1.17.7 which is the current version as of when this code
# was written, following instructions from https://go.dev/doc/manage-install.
# Go modules might not be on for previous versions of Go, so we also have to
# Go modules might not be on for previous versions of Go, so we also have to
# enable the module system explicitly.
export GO111MODULE=on
go install golang.org/dl/go1.17.7
go1.17.7 download
# export GO111MODULE=on
# go install golang.org/dl/go1.17.7
# go1.17.7 download
retry sudo apt-get install -y wget

wget https://go.dev/dl/go1.17.7.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && tar -C /usr/local -xzf go1.17.7.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

go version

# Initializing go modules allows our dependencies to install versions of their
# dependencies specified by their go.mod files. This reduces the likelihood of
Expand Down

0 comments on commit ff88393

Please sign in to comment.