From 8cae0b6c41cc4510c1c6f6ce595add51b151786f Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 16 Jan 2019 18:14:58 +0530 Subject: [PATCH] use dep ensure -vendor-only Signed-off-by: Madhu Rajanna --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7af0b053f..44e974cef 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ test: go vet github.com/ceph/ceph-csi/pkg/... rbdplugin: - if [ ! -d ./vendor ]; then dep ensure; fi + if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o _output/rbdplugin ./rbd image-rbdplugin: rbdplugin @@ -38,7 +38,7 @@ image-rbdplugin: rbdplugin docker build -t $(RBD_IMAGE_NAME):$(RBD_IMAGE_VERSION) deploy/rbd/docker cephfsplugin: - if [ ! -d ./vendor ]; then dep ensure; fi + if [ ! -d ./vendor ]; then dep ensure -vendor-only; fi CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o _output/cephfsplugin ./cephfs image-cephfsplugin: cephfsplugin