Skip to content

Commit 5531f86

Browse files
committed
fix: path of go installation
1 parent cdb4971 commit 5531f86

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,11 @@ jobs:
1313
sudo apt-get install build-essential wget zip gcc-mingw-w64 && \
1414
sudo apt-get remove --auto-remove golang-go && \
1515
sudo rm -rf /usr/bin/go &&\
16-
sudo rm -rf /usr/local/go && \
1716
wget --progress=dot:mega https://golang.org/dl/go1.17.1.linux-amd64.tar.gz -O go-linux.tar.gz && \
1817
sudo tar -zxf go-linux.tar.gz && \
19-
sudo mv go /usr/local/ && \
18+
sudo mv go /usr/bin/ && \
2019
sudo mkdir -p /go/bin /go/src /go/pkg && \
21-
export GO_HOME=/usr/local/go && \
20+
export GO_HOME=/usr/bin/go && \
2221
export GOPATH=/go && \
2322
export PATH=${GOPATH}/bin:${GO_HOME}/bin/:$PATH && \
2423
go version && \

0 commit comments

Comments
 (0)