@@ -73,6 +73,7 @@ EXTRA_GOFLAGS ?=
7373MAKE_VERSION := $(shell "$(MAKE ) " -v | cat | head -n 1)
7474MAKE_EVIDENCE_DIR := .make_evidence
7575
76+ GOTESTFLAGS ?=
7677ifeq ($(RACE_ENABLED ) ,true)
7778 GOFLAGS += -race
7879 GOTESTFLAGS += -race
@@ -311,10 +312,10 @@ lint-frontend: lint-js lint-css ## lint frontend files
311312lint-frontend-fix : lint-js-fix lint-css-fix # # lint frontend files and fix issues
312313
313314.PHONY : lint-backend
314- lint-backend : lint-go lint-go-vet lint-go-gopls lint-editorconfig # # lint backend files
315+ lint-backend : lint-go lint-go-gitea- vet lint-go-gopls lint-editorconfig # # lint backend files
315316
316317.PHONY : lint-backend-fix
317- lint-backend-fix : lint-go-fix lint-go-vet lint-editorconfig # # lint backend files and fix issues
318+ lint-backend-fix : lint-go-fix lint-go-gitea- vet lint-editorconfig # # lint backend files and fix issues
318319
319320.PHONY : lint-js
320321lint-js : node_modules # # lint js files
@@ -365,9 +366,9 @@ lint-go-windows:
365366 @GOOS= GOARCH= $(GO ) install $(GOLANGCI_LINT_PACKAGE )
366367 golangci-lint run
367368
368- .PHONY : lint-go-vet
369- lint-go-vet : # # lint go files with vet
370- @echo " Running go vet..."
369+ .PHONY : lint-go-gitea- vet
370+ lint-go-gitea- vet : # # lint go files with gitea- vet
371+ @echo " Running gitea- vet..."
371372 @GOOS= GOARCH= $(GO ) build code.gitea.io/gitea-vet
372373 @$(GO ) vet -vettool=gitea-vet ./...
373374
@@ -470,7 +471,9 @@ tidy-check: tidy
470471go-licenses : $(GO_LICENSE_FILE ) # # regenerate go licenses
471472
472473$(GO_LICENSE_FILE ) : go.mod go.sum
473- -$(GO ) run $(GO_LICENSES_PACKAGE ) save . --force --save_path=$(GO_LICENSE_TMP_DIR ) 2> /dev/null
474+ @rm -rf $(GO_LICENSE_FILE )
475+ $(GO ) install $(GO_LICENSES_PACKAGE )
476+ -GOOS=linux CGO_ENABLED=1 go-licenses save . --force --save_path=$(GO_LICENSE_TMP_DIR ) 2> /dev/null
474477 $(GO ) run build/generate-go-licenses.go $(GO_LICENSE_TMP_DIR ) $(GO_LICENSE_FILE )
475478 @rm -rf $(GO_LICENSE_TMP_DIR )
476479
0 commit comments