Skip to content

Commit 4f17457

Browse files
Update golang to 1.19.1. (#146)
Signed-off-by: Shishir Mahajan <[email protected]>
1 parent 22bbfcd commit 4f17457

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Vagrantfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ Vagrant.configure("2") do |config|
2828
# without keeping HOME env, 'sudo make test' will try to find files under /root/go/
2929
echo "Defaults env_keep += HOME" | sudo tee /etc/sudoers.d/keep_home
3030
31-
# Install golang-1.17
31+
# Install golang-1.19.1
3232
if [ ! -f "/usr/local/go/bin/go" ]; then
33-
curl -s -L -o go1.17.linux-amd64.tar.gz https://dl.google.com/go/go1.17.linux-amd64.tar.gz
34-
sudo tar -C /usr/local -xzf go1.17.linux-amd64.tar.gz
33+
curl -s -L -o go1.19.1.linux-amd64.tar.gz https://dl.google.com/go/go1.19.1.linux-amd64.tar.gz
34+
sudo tar -C /usr/local -xzf go1.19.1.linux-amd64.tar.gz
3535
sudo chmod +x /usr/local/go
36-
rm -f go1.17.linux-amd64.tar.gz
36+
rm -f go1.19.1.linux-amd64.tar.gz
3737
fi
3838
3939
# Install nomad-1.1.12

tests/run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ if [ -e /home/runner ]; then
1111
else
1212
export GOPATH=$HOME/go
1313
fi
14-
export GO_VERSION=1.17
14+
export GO_VERSION=1.19.1
1515
export SRCDIR=`dirname $0`
1616
source $SRCDIR/utils.sh
1717

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

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

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

0 commit comments

Comments
 (0)