Skip to content

Commit

Permalink
Fix go version in setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
dhschall committed Jun 15, 2024
1 parent 32e6a37 commit 4bcd131
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions setup/setup_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 4bcd131

Please sign in to comment.