fb617044e0
Co-authored-by: juliens <julien@containo.us>
20 lines
490 B
Bash
Executable file
20 lines
490 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
curl -O https://dl.google.com/go/go1.12.linux-amd64.tar.gz
|
|
|
|
tar -xvf go1.12.linux-amd64.tar.gz
|
|
rm -rf go1.12.linux-amd64.tar.gz
|
|
|
|
sudo mkdir -p /usr/local/golang/1.12/go
|
|
sudo mv go /usr/local/golang/1.12/
|
|
|
|
sudo rm /usr/local/bin/go
|
|
sudo chmod +x /usr/local/golang/1.12/go/bin/go
|
|
sudo ln -s /usr/local/golang/1.12/go/bin/go /usr/local/bin/go
|
|
|
|
export GOROOT="/usr/local/golang/1.12/go"
|
|
export GOTOOLDIR="/usr/local/golang/1.12/go/pkg/tool/linux_amd64"
|
|
|
|
go version
|