@@ -120,8 +120,7 @@ WEBPACK_CONFIGS := webpack.config.js tailwind.config.js
120120WEBPACK_DEST := public/assets/js/index.js public/assets/css/index.css
121121WEBPACK_DEST_ENTRIES := public/assets/js public/assets/css public/assets/fonts
122122
123- BINDATA_DEST := modules/public/bindata.go modules/options/bindata.go modules/templates/bindata.go
124- BINDATA_HASH := $(addsuffix .hash,$(BINDATA_DEST ) )
123+ BINDATA_DEST_WILDCARD := modules/migration/bindata.* modules/public/bindata.* modules/options/bindata.* modules/templates/bindata.*
125124
126125GENERATED_GO_DEST := modules/charset/invisible_gen.go modules/charset/ambiguous_gen.go
127126
@@ -149,14 +148,8 @@ SPELLCHECK_FILES := $(GO_DIRS) $(WEB_DIRS) templates options/locale/locale_en-US
149148EDITORCONFIG_FILES := templates .github/workflows options/locale/locale_en-US.ini
150149
151150GO_SOURCES := $(wildcard * .go)
152- GO_SOURCES += $(shell find $(GO_DIRS ) -type f -name "* .go" ! -path modules/options/bindata.go ! -path modules/public/bindata.go ! -path modules/templates/bindata.go )
151+ GO_SOURCES += $(shell find $(GO_DIRS ) -type f -name "* .go")
153152GO_SOURCES += $(GENERATED_GO_DEST )
154- GO_SOURCES_NO_BINDATA := $(GO_SOURCES )
155-
156- ifeq ($(filter $(TAGS_SPLIT ) ,bindata) ,bindata)
157- GO_SOURCES += $(BINDATA_DEST)
158- GENERATED_GO_DEST += $(BINDATA_DEST)
159- endif
160153
161154# Force installation of playwright dependencies by setting this flag
162155ifdef DEPS_PLAYWRIGHT
@@ -226,7 +219,7 @@ clean-all: clean ## delete backend, frontend and integration files
226219
227220.PHONY : clean
228221clean : # # delete backend and integration files
229- rm -rf $(EXECUTABLE ) $(DIST ) $(BINDATA_DEST ) $( BINDATA_HASH ) \
222+ rm -rf $(EXECUTABLE ) $(DIST ) $(BINDATA_DEST_WILDCARD ) \
230223 integrations* .test \
231224 e2e* .test \
232225 tests/integration/gitea-integration-* \
@@ -268,7 +261,7 @@ endif
268261.PHONY : generate-swagger
269262generate-swagger : $(SWAGGER_SPEC ) # # generate the swagger spec from code comments
270263
271- $(SWAGGER_SPEC ) : $(GO_SOURCES_NO_BINDATA ) $(SWAGGER_SPEC_INPUT )
264+ $(SWAGGER_SPEC ) : $(GO_SOURCES ) $(SWAGGER_SPEC_INPUT )
272265 $(GO ) run $(SWAGGER_PACKAGE ) generate spec --exclude " $( SWAGGER_EXCLUDE) " --input " $( SWAGGER_SPEC_INPUT) " --output ' ./$(SWAGGER_SPEC)'
273266
274267.PHONY : swagger-check
@@ -373,7 +366,7 @@ lint-go-gitea-vet: ## lint go files with gitea-vet
373366.PHONY : lint-go-gopls
374367lint-go-gopls : # # lint go files with gopls
375368 @echo " Running gopls check..."
376- @GO=$(GO ) GOPLS_PACKAGE=$(GOPLS_PACKAGE ) tools/lint-go-gopls.sh $(GO_SOURCES_NO_BINDATA )
369+ @GO=$(GO ) GOPLS_PACKAGE=$(GOPLS_PACKAGE ) tools/lint-go-gopls.sh $(GO_SOURCES )
377370
378371.PHONY : lint-editorconfig
379372lint-editorconfig :
0 commit comments