install go1.21.9

This commit is contained in:
crystal 2024-04-09 05:49:38 -06:00
parent 03fcb8fe81
commit 391360b320
No known key found for this signature in database
GPG key ID: 1122054731F7CC43
2 changed files with 9 additions and 0 deletions

View file

@ -155,6 +155,13 @@ case "$1" in
ln -sf /usr/lib/go-$DEP_GOLANG_VER/bin/go /usr/local/bin/go
adduser --quiet --comment forgejo --disabled-password forgejo
chown -R forgejo:forgejo .
if [ "$DEP_GOLANG_NODEB_REV" ];then
go install golang.org/dl/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV@latest
ln -s ~/go/bin/go$DEP_GOLANG_VER.$DEP_GOLANG_NODEB_REV ~/go/bin/go
export PATH="$HOME/go/bin:$PATH"
go download
go version
fi
;;
esac