build: relax required go version for local development

This commit is contained in:
Michael Kriese 2024-12-03 21:30:05 +01:00
parent 790f3c4861
commit 5efd29e54e
No known key found for this signature in database
GPG key ID: F8D7748549A5986A
2 changed files with 13 additions and 1 deletions

View file

@ -13,3 +13,13 @@ runs:
- uses: https://codeberg.org/fnetx/setup-cache-go@4b50dd28b1068fa06d433c5fabed3f6f4d4ccddf
with:
username: forgejo
- name: validate go version
run: |
set -ex
toolchain=$(grep -oP '(?<=toolchain ).+' go.mod)
version=$(go version | cut -d' ' -f3)
if [ "$toolchain" != "$version" ]; then
echo "go version mismatch: $toolchain <> $version"
exit 1
fi

4
go.mod
View file

@ -1,6 +1,8 @@
module code.gitea.io/gitea
go 1.23.3
go 1.23.1
toolchain go1.23.3
require (
code.forgejo.org/f3/gof3/v3 v3.7.0