From 4bcd1315dd7438fc6b4c4357b677a7d08847b540 Mon Sep 17 00:00:00 2001 From: David Schall Date: Wed, 12 Jun 2024 08:16:04 +0100 Subject: [PATCH] Fix go version in setup script --- setup/setup_host.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/setup/setup_host.sh b/setup/setup_host.sh index 9e48137..23a2d27 100755 --- a/setup/setup_host.sh +++ b/setup/setup_host.sh @@ -95,16 +95,21 @@ make -f ${ROOT}/setup/disk.Makefile dep_install # Install golang -GO_VERSION=1.21 +GO_VERSION=1.21.4 GO_BUILD="go${GO_VERSION}.linux-${ARCH}" -wget --continue --quiet https://golang.org/dl/${GO_BUILD}.tar.gz +wget --continue https://golang.org/dl/${GO_BUILD}.tar.gz + +sudo rm -rf /usr/local/go sudo tar -C /usr/local -xzf ${GO_BUILD}.tar.gz +rm ${GO_BUILD}.tar.gz + export PATH=$PATH:/usr/local/go/bin sudo sh -c "echo 'export PATH=\$PATH:/usr/local/go/bin' >> /etc/profile" sudo sh -c "echo 'export PATH=\$PATH:/usr/local/go/bin' >> ${HOME}/.bashrc" source ${HOME}/.bashrc +echo "Installed: $(go version)" END=$(date +%s.%N) printf "\nInstalling dependencies completed successfully after: $(echo "$END - $START" | bc) sec.\n"