mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user