@@ -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
@@ -114,8 +115,6 @@ LINUX_ARCHS ?= linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64
114115GO_TEST_PACKAGES ?= $(filter-out $(shell $(GO ) list code.gitea.io/gitea/models/migrations/...) code.gitea.io/gitea/tests/integration/migration-test code.gitea.io/gitea/tests code.gitea.io/gitea/tests/integration code.gitea.io/gitea/tests/e2e,$(shell $(GO ) list ./... | grep -v /vendor/) )
115116MIGRATE_TEST_PACKAGES ?= $(shell $(GO ) list code.gitea.io/gitea/models/migrations/...)
116117
117- FOMANTIC_WORK_DIR := web_src/fomantic
118-
119118WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)
120119WEBPACK_CONFIGS := webpack.config.js tailwind.config.js
121120WEBPACK_DEST := public/assets/js/index.js public/assets/css/index.css
@@ -139,7 +138,7 @@ TAGS_EVIDENCE := $(MAKE_EVIDENCE_DIR)/tags
139138
140139TEST_TAGS ?= $(TAGS_SPLIT ) sqlite sqlite_unlock_notify
141140
142- TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE ) $(FOMANTIC_WORK_DIR ) /node_modules $( DIST ) $(MAKE_EVIDENCE_DIR ) $(AIR_TMP_DIR ) $(GO_LICENSE_TMP_DIR )
141+ TAR_EXCLUDES := .git data indexers queues log node_modules $(EXECUTABLE ) $(DIST ) $(MAKE_EVIDENCE_DIR ) $(AIR_TMP_DIR ) $(GO_LICENSE_TMP_DIR )
143142
144143GO_DIRS := build cmd models modules routers services tests
145144WEB_DIRS := web_src/js web_src/css
@@ -311,10 +310,10 @@ lint-frontend: lint-js lint-css ## lint frontend files
311310lint-frontend-fix : lint-js-fix lint-css-fix # # lint frontend files and fix issues
312311
313312.PHONY : lint-backend
314- lint-backend : lint-go lint-go-vet lint-go-gopls lint-editorconfig # # lint backend files
313+ lint-backend : lint-go lint-go-gitea- vet lint-go-gopls lint-editorconfig # # lint backend files
315314
316315.PHONY : lint-backend-fix
317- lint-backend-fix : lint-go-fix lint-go-vet lint-editorconfig # # lint backend files and fix issues
316+ lint-backend-fix : lint-go-fix lint-go-gitea- vet lint-editorconfig # # lint backend files and fix issues
318317
319318.PHONY : lint-js
320319lint-js : node_modules # # lint js files
@@ -365,9 +364,9 @@ lint-go-windows:
365364 @GOOS= GOARCH= $(GO ) install $(GOLANGCI_LINT_PACKAGE )
366365 golangci-lint run
367366
368- .PHONY : lint-go-vet
369- lint-go-vet : # # lint go files with vet
370- @echo " Running go vet..."
367+ .PHONY : lint-go-gitea- vet
368+ lint-go-gitea- vet : # # lint go files with gitea- vet
369+ @echo " Running gitea- vet..."
371370 @GOOS= GOARCH= $(GO ) build code.gitea.io/gitea-vet
372371 @$(GO ) vet -vettool=gitea-vet ./...
373372
@@ -846,19 +845,6 @@ update-py: node-check | node_modules ## update py dependencies
846845 poetry install
847846 @touch .venv
848847
849- .PHONY : fomantic
850- fomantic : # # build fomantic files
851- rm -rf $(FOMANTIC_WORK_DIR ) /build
852- cd $(FOMANTIC_WORK_DIR ) && npm install --no-save
853- cp -f $(FOMANTIC_WORK_DIR ) /theme.config.less $(FOMANTIC_WORK_DIR ) /node_modules/fomantic-ui/src/theme.config
854- cp -rf $(FOMANTIC_WORK_DIR ) /_site $(FOMANTIC_WORK_DIR ) /node_modules/fomantic-ui/src/
855- $(SED_INPLACE ) -e ' s/ overrideBrowserslist\r/ overrideBrowserslist: ["defaults"]\r/g' $(FOMANTIC_WORK_DIR ) /node_modules/fomantic-ui/tasks/config/tasks.js
856- cd $(FOMANTIC_WORK_DIR ) && npx gulp -f node_modules/fomantic-ui/gulpfile.js build
857- # fomantic uses "touchstart" as click event for some browsers, it's not ideal, so we force fomantic to always use "click" as click event
858- $(SED_INPLACE ) -e ' s/clickEvent[ \t]*=/clickEvent = "click", unstableClickEvent =/g' $(FOMANTIC_WORK_DIR ) /build/semantic.js
859- $(SED_INPLACE ) -e ' s/\r//g' $(FOMANTIC_WORK_DIR ) /build/semantic.css $(FOMANTIC_WORK_DIR ) /build/semantic.js
860- rm -f $(FOMANTIC_WORK_DIR ) /build/* .min.*
861-
862848.PHONY : webpack
863849webpack : $(WEBPACK_DEST ) # # build webpack files
864850
@@ -905,10 +891,6 @@ update-translations:
905891 mv ./translations/* .ini ./options/locale/
906892 rmdir ./translations
907893
908- .PHONY : generate-license
909- generate-license : # # update license files
910- $(GO ) run build/generate-licenses.go
911-
912894.PHONY : generate-gitignore
913895generate-gitignore : # # update gitignore files
914896 $(GO ) run build/generate-gitignores.go
0 commit comments