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 <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin 2020-07-31 17:29:29 -07:00
parent a340fa9b56
commit 985bd24f62
1 changed files with 3 additions and 3 deletions

View File

@ -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