aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMura Li <typeless@users.noreply.github.com>2019-08-29 04:18:15 +0800
committerAntoine GIRARD <sapk@users.noreply.github.com>2019-08-28 22:18:15 +0200
commitdd3ba9bb6be38e2a03a6e218b936e75ff554b080 (patch)
treea870e84c145615703be4c61ad59f77252b09ee27
parent13388258a4ef1593784e8daf97506575cc284f61 (diff)
downloadgitea-dd3ba9bb6be38e2a03a6e218b936e75ff554b080.tar.gz
gitea-dd3ba9bb6be38e2a03a6e218b936e75ff554b080.zip
Fix make-generate using non-vendor packages (#8008)
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d320a70e59..69f352a8ab 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,7 @@ endif
LDFLAGS := $(LDFLAGS) -X "main.MakeVersion=$(MAKE_VERSION)" -X "main.Version=$(GITEA_VERSION)" -X "main.Tags=$(TAGS)"
-PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations/migration-test,$(filter-out code.gitea.io/gitea/integrations,$(shell $(GO) list ./... | grep -v /vendor/)))
+PACKAGES ?= $(filter-out code.gitea.io/gitea/integrations/migration-test,$(filter-out code.gitea.io/gitea/integrations,$(shell GO111MODULE=on $(GO) list -mod=vendor ./... | grep -v /vendor/)))
SOURCES ?= $(shell find . -name "*.go" -type f)
TAGS ?=