From 776b408f7622796e7e9761d65e275f36ffe29a4b Mon Sep 17 00:00:00 2001 From: Valentin Rothberg Date: Thu, 21 Feb 2019 13:48:22 +0100 Subject: [PATCH] make vendor: always fetch the latest vndr Make sure to always use the latest version of vndr by fetching it prior to execution. Signed-off-by: Valentin Rothberg --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a73762a6..61355260 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all binary build-container docs docs-in-container build-local clean install install-binary install-completions shell test-integration vendor +.PHONY: all binary build-container docs docs-in-container build-local clean install install-binary install-completions shell test-integration .install.vndr vendor export GO15VENDOREXPERIMENT=1 @@ -146,5 +146,9 @@ validate-local: test-unit-local: $(GPGME_ENV) $(GO) test -tags "$(BUILDTAGS)" $$($(GO) list -tags "$(BUILDTAGS)" -e ./... | grep -v '^github\.com/containers/skopeo/\(integration\|vendor/.*\)$$') -vendor: vendor.conf - vndr -whitelist '^github.com/containers/image/docs/.*' +.install.vndr: + $(GO) get -u github.com/LK4D4/vndr + +vendor: vendor.conf .install.vndr + $(GOPATH)/bin/vndr \ + -whitelist '^github.com/containers/image/docs/.*'