1
1
DIST := dist
2
2
IMPORT := code.gitea.io/gitea
3
- export GO111MODULE =off
3
+ export GO111MODULE =on
4
4
5
5
GO ?= go
6
6
SED_INPLACE := sed -i
97
97
98
98
.PHONY : generate
99
99
generate :
100
- GO111MODULE=on $(GO ) generate -mod=vendor $(PACKAGES )
100
+ $(GO ) generate -mod=vendor $(PACKAGES )
101
101
102
102
.PHONY : generate-swagger
103
103
generate-swagger :
104
104
@hash swagger > /dev/null 2>&1 ; if [ $$ ? -ne 0 ]; then \
105
- GO111MODULE= " on " $(GO ) get -u github.com/go-swagger/go-swagger/cmd/
[email protected] ; \
105
+ $(GO ) get -u github.com/go-swagger/go-swagger/cmd/
[email protected] ; \
106
106
fi
107
107
swagger generate spec -o ' ./$(SWAGGER_SPEC)'
108
108
$(SED_INPLACE ) ' $(SWAGGER_SPEC_S_TMPL)' ' ./$(SWAGGER_SPEC)'
@@ -170,7 +170,7 @@ fmt-check:
170
170
171
171
.PHONY : test
172
172
test :
173
- GO111MODULE=on $(GO ) test -mod=vendor -tags=' sqlite sqlite_unlock_notify' $(PACKAGES )
173
+ $(GO ) test -mod=vendor -tags=' sqlite sqlite_unlock_notify' $(PACKAGES )
174
174
175
175
.PHONY : coverage
176
176
coverage :
@@ -185,7 +185,7 @@ unit-test-coverage:
185
185
186
186
.PHONY : vendor
187
187
vendor :
188
- GO111MODULE=on $(GO ) mod tidy && GO111MODULE=on $(GO ) mod vendor
188
+ $(GO ) mod tidy && $(GO ) mod vendor
189
189
190
190
.PHONY : test-vendor
191
191
test-vendor : vendor
@@ -285,34 +285,34 @@ integration-test-coverage: integrations.cover.test generate-ini
285
285
GITEA_ROOT=${CURDIR} GITEA_CONF=integrations/mysql.ini ./integrations.cover.test -test.coverprofile=integration.coverage.out
286
286
287
287
integrations.test : $(SOURCES )
288
- GO111MODULE=on $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.test
288
+ $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.test
289
289
290
290
integrations.sqlite.test : $(SOURCES )
291
- GO111MODULE=on $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.sqlite.test -tags ' sqlite sqlite_unlock_notify'
291
+ $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -o integrations.sqlite.test -tags ' sqlite sqlite_unlock_notify'
292
292
293
293
integrations.cover.test : $(SOURCES )
294
- GO111MODULE=on $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -coverpkg $(shell echo $(PACKAGES ) | tr ' ' ',') -o integrations.cover.test
294
+ $(GO ) test -mod=vendor -c code.gitea.io/gitea/integrations -coverpkg $(shell echo $(PACKAGES ) | tr ' ' ',') -o integrations.cover.test
295
295
296
296
.PHONY : migrations.test
297
297
migrations.test : $(SOURCES )
298
- $(GO ) test -c code.gitea.io/gitea/integrations/migration-test -o migrations.test
298
+ $(GO ) test -mod=vendor - c code.gitea.io/gitea/integrations/migration-test -o migrations.test
299
299
300
300
.PHONY : migrations.sqlite.test
301
301
migrations.sqlite.test : $(SOURCES )
302
- $(GO ) test -c code.gitea.io/gitea/integrations/migration-test -o migrations.sqlite.test -tags ' sqlite sqlite_unlock_notify'
302
+ $(GO ) test -mod=vendor - c code.gitea.io/gitea/integrations/migration-test -o migrations.sqlite.test -tags ' sqlite sqlite_unlock_notify'
303
303
304
304
.PHONY : check
305
305
check : test
306
306
307
307
.PHONY : install
308
308
install : $(wildcard * .go)
309
- $(GO ) install -v -tags ' $(TAGS)' -ldflags ' -s -w $(LDFLAGS)'
309
+ $(GO ) install -mod=vendor - v -tags ' $(TAGS)' -ldflags ' -s -w $(LDFLAGS)'
310
310
311
311
.PHONY : build
312
312
build : $(EXECUTABLE )
313
313
314
314
$(EXECUTABLE ) : $(SOURCES )
315
- GO111MODULE=on $(GO ) build -mod=vendor $(GOFLAGS ) $(EXTRA_GOFLAGS ) -tags ' $(TAGS)' -ldflags ' -s -w $(LDFLAGS)' -o $@
315
+ $(GO ) build -mod=vendor $(GOFLAGS ) $(EXTRA_GOFLAGS ) -tags ' $(TAGS)' -ldflags ' -s -w $(LDFLAGS)' -o $@
316
316
317
317
.PHONY : release
318
318
release : release-dirs release-windows release-linux release-darwin release-copy release-compress release-check
0 commit comments