We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c12c5be commit 4d9a4f1Copy full SHA for 4d9a4f1
1 file changed
infra/base-images/base-runner/install_go.sh
@@ -20,10 +20,17 @@
20
case $(uname -m) in
21
x86_64)
22
# 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
+ export GOROOT=/root/.go
+ wget https://go.dev/dl/go1.25.0.linux-amd64.tar.gz
+ mkdir temp-go
+ 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"'
34
# Set up Golang coverage modules.
35
printf $(find . -name gocoverage)
36
cd $GOPATH/gocoverage && /root/.go/bin/go install ./...
0 commit comments