From a036e890b9ef394cd35850176f2bce0bde09e82f Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Mon, 27 Apr 2020 13:23:29 -0700 Subject: [PATCH] Makefile: add -mod=vendor to go test Otherwise, in case go < 1.14 is used, all the go deps are downloaded instead of using vendor subdir. Signed-off-by: Kir Kolyshkin --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index baa401896..a4510ecde 100644 --- a/Makefile +++ b/Makefile @@ -75,7 +75,7 @@ unittest: runcimage $(RUNC_IMAGE) make localunittest TESTFLAGS=$(TESTFLAGS) localunittest: all - $(GO) test -timeout 3m -tags "$(BUILDTAGS)" $(TESTFLAGS) -v ./... + $(GO) $(MOD_VENDOR) test -timeout 3m -tags "$(BUILDTAGS)" $(TESTFLAGS) -v ./... integration: runcimage $(CONTAINER_ENGINE) run $(CONTAINER_ENGINE_RUN_FLAGS) \