build_gitea : oops i messup on golang build

This commit is contained in:
minoplhy 2023-11-22 22:00:37 +07:00
parent 3ed26639ff
commit 3f45c72a4a
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF

View File

@ -42,14 +42,11 @@ then
GO_VERSION=1.20.5 GO_VERSION=1.20.5
fi fi
if [[ ! "$BUILD_STATIC" == "True" ]]
then
sudo unlink /usr/bin/go sudo unlink /usr/bin/go
wget https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz wget https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin export PATH=$PATH:/usr/local/go/bin
sudo ln -s /usr/local/go/bin /usr/bin/go sudo ln -s /usr/local/go/bin /usr/bin/go
fi
# Gitea # Gitea