Skip to content

Commit

Permalink
Update golang to 1.19.1. (#146)
Browse files Browse the repository at this point in the history
Signed-off-by: Shishir Mahajan <[email protected]>
shishir-a412ed authored Oct 12, 2022
1 parent 22bbfcd commit 4f17457
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -28,12 +28,12 @@ Vagrant.configure("2") do |config|
# without keeping HOME env, 'sudo make test' will try to find files under /root/go/
echo "Defaults env_keep += HOME" | sudo tee /etc/sudoers.d/keep_home
# Install golang-1.17
# Install golang-1.19.1
if [ ! -f "/usr/local/go/bin/go" ]; then
curl -s -L -o go1.17.linux-amd64.tar.gz https://dl.google.com/go/go1.17.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.17.linux-amd64.tar.gz
curl -s -L -o go1.19.1.linux-amd64.tar.gz https://dl.google.com/go/go1.19.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
sudo chmod +x /usr/local/go
rm -f go1.17.linux-amd64.tar.gz
rm -f go1.19.1.linux-amd64.tar.gz
fi
# Install nomad-1.1.12
6 changes: 3 additions & 3 deletions tests/run_tests.sh
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ if [ -e /home/runner ]; then
else
export GOPATH=$HOME/go
fi
export GO_VERSION=1.17
export GO_VERSION=1.19.1
export SRCDIR=`dirname $0`
source $SRCDIR/utils.sh

@@ -121,11 +121,11 @@ EOF
sudo systemctl start containerd
is_systemd_service_active "containerd.service" false

# Remove default golang (1.7.3) and install a custom version (1.17) of golang.
# Remove default golang (1.7.3) and install a custom version (1.19.1) of golang.
# This is required for supporting go mod, and to be able to compile nomad-driver-containerd.
sudo rm -rf /usr/local/go

# Install golang 1.17
# Install golang 1.19.1
curl -L -o go${GO_VERSION}.linux-amd64.tar.gz https://dl.google.com/go/go${GO_VERSION}.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go${GO_VERSION}.linux-amd64.tar.gz
sudo chmod +x /usr/local/go

0 comments on commit 4f17457

Please sign in to comment.