File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
infra/base-images/base-runner Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 2020case $( uname -m) in
2121 x86_64)
2222 # Download and install Go.
23- wget -q https://storage.googleapis.com/golang/getgo/installer_linux -O $SRC /installer_linux
24- chmod +x $SRC /installer_linux
25- SHELL=" bash" $SRC /installer_linux -version 1.25.0
26- rm $SRC /installer_linux
23+ export GOROOT=/root/.go
24+ wget https://go.dev/dl/go1.25.0.linux-amd64.tar.gz
25+ mkdir temp-go
26+ tar -C temp-go/ -xzf go1.25.0.linux-amd64.tar.gz
27+
28+ mkdir $GOROOT
29+ mv temp-go/go/* /root/.go/
30+ rm -rf temp-go
31+
32+ echo ' Set "GOPATH=/root/go"'
33+ echo ' Set "PATH=$PATH:/root/.go/bin:$GOPATH/bin"'
2734 # Set up Golang coverage modules.
2835 printf $( find . -name gocoverage)
2936 cd $GOPATH /gocoverage && /root/.go/bin/go install ./...
You can’t perform that action at this time.
0 commit comments