@@ -26,9 +26,9 @@ COMMA := ,
26
26
XGO_VERSION := go-1.24.x
27
27
28
28
AIR_PACKAGE ?= github.com/air-verse/air@v1
29
- EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3.1.2
29
+ EDITORCONFIG_CHECKER_PACKAGE ?= github.com/editorconfig-checker/editorconfig-checker/v3/cmd/editorconfig-checker@v3.2.1
30
30
GOFUMPT_PACKAGE ?= mvdan.cc/
[email protected]
31
- GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/
[email protected] .
5
31
+ GOLANGCI_LINT_PACKAGE ?= github.com/golangci/golangci-lint/cmd/
[email protected] .
7
32
32
GXZ_PACKAGE ?= github.com/ulikunitz/xz/cmd/
[email protected]
33
33
MISSPELL_PACKAGE ?= github.com/golangci/misspell/cmd/
[email protected]
34
34
SWAGGER_PACKAGE ?= github.com/go-swagger/go-swagger/cmd/
[email protected]
@@ -115,8 +115,6 @@ LINUX_ARCHS ?= linux/amd64,linux/386,linux/arm-5,linux/arm-6,linux/arm64
115
115
GO_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/) )
116
116
MIGRATE_TEST_PACKAGES ?= $(shell $(GO ) list code.gitea.io/gitea/models/migrations/...)
117
117
118
- FOMANTIC_WORK_DIR := web_src/fomantic
119
-
120
118
WEBPACK_SOURCES := $(shell find web_src/js web_src/css -type f)
121
119
WEBPACK_CONFIGS := webpack.config.js tailwind.config.js
122
120
WEBPACK_DEST := public/assets/js/index.js public/assets/css/index.css
@@ -140,7 +138,7 @@ TAGS_EVIDENCE := $(MAKE_EVIDENCE_DIR)/tags
140
138
141
139
TEST_TAGS ?= $(TAGS_SPLIT ) sqlite sqlite_unlock_notify
142
140
143
- 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 )
144
142
145
143
GO_DIRS := build cmd models modules routers services tests
146
144
WEB_DIRS := web_src/js web_src/css
@@ -412,12 +410,12 @@ watch-backend: go-check ## watch backend files and continuously rebuild
412
410
test : test-frontend test-backend # # test everything
413
411
414
412
.PHONY : test-backend
415
- test-backend : # # test frontend files
413
+ test-backend : # # test backend files
416
414
@echo " Running go test with $( GOTESTFLAGS) -tags '$( TEST_TAGS) '..."
417
415
@$(GO ) test $(GOTESTFLAGS ) -tags=' $(TEST_TAGS)' $(GO_TEST_PACKAGES )
418
416
419
417
.PHONY : test-frontend
420
- test-frontend : node_modules # # test backend files
418
+ test-frontend : node_modules # # test frontend files
421
419
npx vitest
422
420
423
421
.PHONY : test-check
@@ -739,7 +737,7 @@ generate-go: $(TAGS_PREREQ)
739
737
740
738
.PHONY : security-check
741
739
security-check :
742
- go run $(GOVULNCHECK_PACKAGE ) ./...
740
+ go run $(GOVULNCHECK_PACKAGE ) -show color ./...
743
741
744
742
$(EXECUTABLE ) : $(GO_SOURCES ) $(TAGS_PREREQ )
745
743
CGO_CFLAGS=" $( CGO_CFLAGS) " $(GO ) build $(GOFLAGS ) $(EXTRA_GOFLAGS ) -tags ' $(TAGS)' -ldflags ' -s -w $(LDFLAGS)' -o $@
@@ -847,19 +845,6 @@ update-py: node-check | node_modules ## update py dependencies
847
845
poetry install
848
846
@touch .venv
849
847
850
- .PHONY : fomantic
851
- fomantic : # # build fomantic files
852
- rm -rf $(FOMANTIC_WORK_DIR ) /build
853
- cd $(FOMANTIC_WORK_DIR ) && npm install --no-save
854
- cp -f $(FOMANTIC_WORK_DIR ) /theme.config.less $(FOMANTIC_WORK_DIR ) /node_modules/fomantic-ui/src/theme.config
855
- cp -rf $(FOMANTIC_WORK_DIR ) /_site $(FOMANTIC_WORK_DIR ) /node_modules/fomantic-ui/src/
856
- $(SED_INPLACE ) -e ' s/ overrideBrowserslist\r/ overrideBrowserslist: ["defaults"]\r/g' $(FOMANTIC_WORK_DIR ) /node_modules/fomantic-ui/tasks/config/tasks.js
857
- cd $(FOMANTIC_WORK_DIR ) && npx gulp -f node_modules/fomantic-ui/gulpfile.js build
858
- # fomantic uses "touchstart" as click event for some browsers, it's not ideal, so we force fomantic to always use "click" as click event
859
- $(SED_INPLACE ) -e ' s/clickEvent[ \t]*=/clickEvent = "click", unstableClickEvent =/g' $(FOMANTIC_WORK_DIR ) /build/semantic.js
860
- $(SED_INPLACE ) -e ' s/\r//g' $(FOMANTIC_WORK_DIR ) /build/semantic.css $(FOMANTIC_WORK_DIR ) /build/semantic.js
861
- rm -f $(FOMANTIC_WORK_DIR ) /build/* .min.*
862
-
863
848
.PHONY : webpack
864
849
webpack : $(WEBPACK_DEST ) # # build webpack files
865
850
0 commit comments