From dd3ba9bb6be38e2a03a6e218b936e75ff554b080 Mon Sep 17 00:00:00 2001 From: Mura Li Date: Thu, 29 Aug 2019 04:18:15 +0800 Subject: [PATCH] Fix make-generate using non-vendor packages (#8008) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d320a70e5984..69f352a8abb5 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 ?=