aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGusted2022-07-04 05:33:55 +0200
committerGitHub2022-07-04 11:33:55 +0800
commitf9b172db65b9a60da86ffee66d9a58853486b1ff (patch)
tree83af2a1c83c218b9e94c1855396c333f3ab2eb78 /Makefile
parent9d9bf66c3b3fd8462e4db36458d333223c3b11a7 (diff)
Remove `GO111MODULE` (#20221)
- Given we use go1.18 for this and don't rely on the Go 1.11 modules behavior(we use the modern `go run` & `go get` which has the correct behavior by-default).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 2e2c86376..3e2f1524e 100644
--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,6 @@ else
DIST := dist
DIST_DIRS := $(DIST)/binaries $(DIST)/release
IMPORT := code.gitea.io/gitea
-export GO111MODULE=on
GO ?= go
SHASUM ?= shasum -a 256
@@ -363,7 +362,7 @@ test\#%:
coverage:
grep '^\(mode: .*\)\|\(.*:[0-9]\+\.[0-9]\+,[0-9]\+\.[0-9]\+ [0-9]\+ [0-9]\+\)$$' coverage.out > coverage-bodged.out
grep '^\(mode: .*\)\|\(.*:[0-9]\+\.[0-9]\+,[0-9]\+\.[0-9]\+ [0-9]\+ [0-9]\+\)$$' integration.coverage.out > integration.coverage-bodged.out
- GO111MODULE=on $(GO) run build/gocovmerge.go integration.coverage-bodged.out coverage-bodged.out > coverage.all || (echo "gocovmerge failed"; echo "integration.coverage.out"; cat integration.coverage.out; echo "coverage.out"; cat coverage.out; exit 1)
+ $(GO) run build/gocovmerge.go integration.coverage-bodged.out coverage-bodged.out > coverage.all || (echo "gocovmerge failed"; echo "integration.coverage.out"; cat integration.coverage.out; echo "coverage.out"; cat coverage.out; exit 1)
.PHONY: unit-test-coverage
unit-test-coverage:
@@ -754,11 +753,11 @@ update-translations:
.PHONY: generate-license
generate-license:
- GO111MODULE=on $(GO) run build/generate-licenses.go
+ $(GO) run build/generate-licenses.go
.PHONY: generate-gitignore
generate-gitignore:
- GO111MODULE=on $(GO) run build/generate-gitignores.go
+ $(GO) run build/generate-gitignores.go
.PHONY: generate-images
generate-images: | node_modules