bump go version to 1.17
This commit is contained in:
parent
6612c82a33
commit
9a5d4a00e2
1 changed files with 6 additions and 4 deletions
10
build-go.sh
10
build-go.sh
|
|
@ -16,8 +16,8 @@ bootstrap="${install_dir}/bootstrap-${v14}"
|
|||
tgz14="${v14}.tar.gz"
|
||||
path_v14="${install_dir}/${tgz14}"
|
||||
|
||||
new="go1.16.3"
|
||||
new_sum="26f31e6a8291e93b106083950a94c9f0323f33ac16538eb0ddef593ae8b20b97"
|
||||
new="go1.17"
|
||||
new_sum="d912e9db0fcbf69b7dacde058ee1675d0e3998905b8b2ab1080a5deb6df18f5d"
|
||||
tgznew="${new}.tar.gz"
|
||||
path_new="${install_dir}/${tgznew}"
|
||||
|
||||
|
|
@ -45,7 +45,8 @@ export CGO_ENABLED=0
|
|||
|
||||
if [[ ! -x "${bootstrap}/bin/go" ]]; then
|
||||
cd ${bootstrap}/src
|
||||
./make.bash &> /dev/null
|
||||
#./make.bash &> /dev/null
|
||||
./make.bash
|
||||
fi
|
||||
|
||||
export GOROOT_BOOTSTRAP=${bootstrap}
|
||||
|
|
@ -53,7 +54,8 @@ export GOROOT_BOOTSTRAP=${bootstrap}
|
|||
[[ "$(uname -m)" == "x86_64" ]] && export GOARCH=amd64 || export GOARCH=386
|
||||
|
||||
cd ${go_dir}/src
|
||||
./make.bash &> /dev/null
|
||||
./make.bash
|
||||
#./make.bash &> /dev/null
|
||||
|
||||
export GOROOT=${go_dir}
|
||||
export PATH=${PATH}:${GOROOT}/bin:~/go/bin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue