diff --git a/hack/make/go.mk b/hack/make/go.mk index 1209a34..dea7676 100644 --- a/hack/make/go.mk +++ b/hack/make/go.mk @@ -12,7 +12,7 @@ PKG := $(subst $(GO_PATH)/src/,,$(CURDIR)) GO_PKGS := $(shell go list ./... | grep -v -e '.pb.go') GO_APP_PKGS := $(shell go list -f '{{if and (or .GoFiles .CgoFiles) (ne .Name "main")}}{{.ImportPath}}{{end}}' ${PKG}/...) GO_TEST_PKGS := $(shell go list -f='{{if or .TestGoFiles .XTestGoFiles}}{{.ImportPath}}{{end}}' ./...) -GO_VENDOR_PKGS := $(shell go list -f '{{if and (or .GoFiles .CgoFiles) (ne .Name "main")}}./vendor/{{.ImportPath}}{{end}}' ./vendor/...) +GO_VENDOR_PKGS := $(shell go list -f '{{if and (or .GoFiles .CgoFiles) (ne .Name "main")}}./vendor/{{.ImportPath}}{{end}}' -mod=vendor ./vendor/...) GO_TEST ?= go test ifneq ($(shell command -v gotest),)