Merge pull request #126 from Madhu-1/dep-vendor

use dep  ensure -vendor-only
This commit is contained in:
Huamin Chen 2019-01-15 15:09:27 -05:00 committed by GitHub
commit 2f1317ff1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ test:
go vet github.com/ceph/ceph-csi/pkg/... go vet github.com/ceph/ceph-csi/pkg/...
rbdplugin: 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 CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o _output/rbdplugin ./rbd
image-rbdplugin: rbdplugin image-rbdplugin: rbdplugin
@ -38,7 +38,7 @@ image-rbdplugin: rbdplugin
docker build -t $(RBD_IMAGE_NAME):$(RBD_IMAGE_VERSION) deploy/rbd/docker docker build -t $(RBD_IMAGE_NAME):$(RBD_IMAGE_VERSION) deploy/rbd/docker
cephfsplugin: 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 CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o _output/cephfsplugin ./cephfs
image-cephfsplugin: cephfsplugin image-cephfsplugin: cephfsplugin