diff --git a/Makefile b/Makefile index 47b8410a..2bba3f4a 100644 --- a/Makefile +++ b/Makefile @@ -90,7 +90,7 @@ else $(WEAVER_EXE) $(WEAVEPROXY_EXE): ifeq ($(COVERAGE),true) - $(eval COVERAGE_MODULES := $(shell (go list ./$(@D); go list -f '{{join .Deps "\n"}}' ./$(@D) | grep "^$(PACKAGE_BASE)/") | paste -s -d,)) + $(eval COVERAGE_MODULES := $(shell (go list ./$(@D); go list -f '{{join .Deps "\n"}}' ./$(@D) | grep "^$(PACKAGE_BASE)/") | grep -v "^$(PACKAGE_BASE)/vendor/" | paste -s -d,)) go test -c -o ./$@ $(BUILD_FLAGS) -v -covermode=atomic -coverpkg $(COVERAGE_MODULES) ./$(@D)/ else go build $(BUILD_FLAGS) -o $@ ./$(@D)