loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request 'build: relax required go version for local development' (#6136) from viceice/forgejo:ci/go-version into forgejo

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/6136
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>

+15 -3
+10
.forgejo/workflows-composite/setup-env/action.yaml
··· 13 13 - uses: https://codeberg.org/fnetx/setup-cache-go@4b50dd28b1068fa06d433c5fabed3f6f4d4ccddf 14 14 with: 15 15 username: forgejo 16 + 17 + - name: validate go version 18 + run: | 19 + set -ex 20 + toolchain=$(grep -oP '(?<=toolchain ).+' go.mod) 21 + version=$(go version | cut -d' ' -f3) 22 + if [ "$toolchain" != "$version" ]; then 23 + echo "go version mismatch: $toolchain <> $version" 24 + exit 1 25 + fi
+2 -2
Makefile
··· 18 18 DIST_DIRS := $(DIST)/binaries $(DIST)/release 19 19 IMPORT := code.gitea.io/gitea 20 20 21 - GO ?= go 21 + GO ?= $(shell go env GOROOT)/bin/go 22 22 SHASUM ?= shasum -a 256 23 23 HAS_GO := $(shell hash $(GO) > /dev/null 2>&1 && echo yes) 24 24 COMMA := , ··· 620 620 go-licenses: $(GO_LICENSE_FILE) 621 621 622 622 $(GO_LICENSE_FILE): go.mod go.sum 623 - -$(shell $(GO) env GOROOT)/bin/go run $(GO_LICENSES_PACKAGE) save . --force --ignore code.gitea.io/gitea --save_path=$(GO_LICENSE_TMP_DIR) 2>/dev/null 623 + -$(GO) run $(GO_LICENSES_PACKAGE) save . --force --ignore code.gitea.io/gitea --save_path=$(GO_LICENSE_TMP_DIR) 2>/dev/null 624 624 $(GO) run build/generate-go-licenses.go $(GO_LICENSE_TMP_DIR) $(GO_LICENSE_FILE) 625 625 @rm -rf $(GO_LICENSE_TMP_DIR) 626 626
+3 -1
go.mod
··· 1 1 module code.gitea.io/gitea 2 2 3 - go 1.23.3 3 + go 1.23.1 4 + 5 + toolchain go1.23.3 4 6 5 7 require ( 6 8 code.forgejo.org/f3/gof3/v3 v3.7.0