summaryrefslogtreecommitdiff
path: root/.ci-make.sh
diff options
context:
space:
mode:
authorcrystal <crystal@noreply.codeberg.org>2024-04-09 06:57:35 -0600
committercrystal <crystal@noreply.codeberg.org>2024-04-09 06:57:35 -0600
commitdc718d4f7a0ced00d94514beec48d53ecbdf3e19 (patch)
treea967746079fa4f4dcd441466289b329a592066c4 /.ci-make.sh
parent391360b320cbbef047a651dda3abfa3d4264935b (diff)
upgrade go as user forgejov1.21.10-0
Diffstat (limited to '.ci-make.sh')
-rwxr-xr-x.ci-make.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/.ci-make.sh b/.ci-make.sh
index 7c112bf..7141acf 100755
--- a/.ci-make.sh
+++ b/.ci-make.sh
@@ -156,12 +156,15 @@ case "$1" in
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
+ su forgejo -c "./.ci-make.sh forgejo-test-deps_upgrade-go $DEP_GOLANG_VER $DEP_GOLANG_NODEB_REV"
fi
;;
+ "forgejo-test-deps_upgrade-go")
+ go install golang.org/dl/go$2.$3@latest
+ ln -s ~/go/bin/go$2.$3 ~/go/bin/go
+ export PATH="$HOME/go/bin:$PATH"
+ go download
+ go version
+ ;;
esac