build_gitea : oops i messup on golang build
This commit is contained in:
parent
3ed26639ff
commit
3f45c72a4a
@ -42,14 +42,11 @@ then
|
|||||||
GO_VERSION=1.20.5
|
GO_VERSION=1.20.5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! "$BUILD_STATIC" == "True" ]]
|
sudo unlink /usr/bin/go
|
||||||
then
|
wget https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz
|
||||||
sudo unlink /usr/bin/go
|
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz
|
||||||
wget https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz
|
export PATH=$PATH:/usr/local/go/bin
|
||||||
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go$GO_VERSION.linux-amd64.tar.gz
|
sudo ln -s /usr/local/go/bin /usr/bin/go
|
||||||
export PATH=$PATH:/usr/local/go/bin
|
|
||||||
sudo ln -s /usr/local/go/bin /usr/bin/go
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Gitea
|
# Gitea
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user