Skip to content
Snippets Groups Projects
Commit 02b142f8 authored by Katharina Renk's avatar Katharina Renk
Browse files

updated go version in packer and vagrantfile

parent e6b6abc4
No related branches found
No related tags found
1 merge request!735Update go 1.22
This commit is part of merge request !735. Comments created here will be created in the context of that merge request.
...@@ -5,9 +5,9 @@ sudo apt update ...@@ -5,9 +5,9 @@ sudo apt update
sudo apt upgrade -y sudo apt upgrade -y
# Install go # Install go
wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz
rm go1.21.5.linux-amd64.tar.gz rm go1.22.0.linux-amd64.tar.gz
echo "export PATH=$PATH:/usr/local/go/bin" >>/home/gosdn/.profile echo "export PATH=$PATH:/usr/local/go/bin" >>/home/gosdn/.profile
echo "export GOPATH=$HOME/go " >>/home/gosdn/.profile echo "export GOPATH=$HOME/go " >>/home/gosdn/.profile
source /home/gosdn/.profile source /home/gosdn/.profile
......
...@@ -37,9 +37,9 @@ Vagrant.configure(2) do |config| ...@@ -37,9 +37,9 @@ Vagrant.configure(2) do |config|
zip zip
apt-get autoremove -y apt-get autoremove -y
####### installing go ####### ####### installing go #######
wget https://go.dev/dl/go1.21.5.linux-amd64.tar.gz wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz
rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.5.linux-amd64.tar.gz rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.0.linux-amd64.tar.gz
rm go1.21.5.linux-amd64.tar.gz rm go1.22.0.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> /home/vagrant/.profile echo 'export PATH=$PATH:/usr/local/go/bin' >> /home/vagrant/.profile
echo 'export GOPATH=$HOME/go' >> /home/vagrant/.profile echo 'export GOPATH=$HOME/go' >> /home/vagrant/.profile
source /home/vagrant/.profile source /home/vagrant/.profile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment