From 985bd24f62319cfaf34b01cc3d3ec8ca7abb088f Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Fri, 31 Jul 2020 17:29:29 -0700 Subject: [PATCH] Makefile: fix go vet/fmt I have noticed that `go vet` from golang 1.13 ignores the vendor/ subdir, downloading all the modules when invoked in Travis CI env. As the other go commands, in 1.13 it needs explicit -mod=vendor flag, so let's provide one. PS once golang 1.13 is unsupported, we will drop it. Signed-off-by: Kir Kolyshkin --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b02ebb7f..2b9c4c08 100644 --- a/Makefile +++ b/Makefile @@ -52,8 +52,8 @@ dbuild: runcimage $(RUNC_IMAGE) make clean all lint: - $(GO) vet ./... - $(GO) fmt ./... + $(GO) vet $(MOD_VENDOR) ./... + $(GO) fmt $(MOD_VENDOR) ./... man: man/md2man-all.sh @@ -120,7 +120,7 @@ clean: validate: script/validate-gofmt script/validate-c - $(GO) vet ./... + $(GO) vet $(MOD_VENDOR) ./... ci: validate test release