From e6a072e0ad0a396e8703d11c43e54080018b96cf Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Sat, 22 Aug 2015 22:23:36 -0700 Subject: [PATCH] Add package add and remove commands to Makefile --- CONTRIBUTING.md | 8 +++++--- Makefile | 6 ++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 49a9a8553..f84c303dd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,9 +53,11 @@ Building Libraries * If you have additional dependencies for ``Minio``, ``Minio`` manages its depedencies using [govendor](https://github.com/kardianos/govendor) - Run `go get foo/bar` - Edit your code to import foo/bar - - export GO15VENDOREXPERIMENT=1 - - Run `govendor remove +vendor` from top-level directory - - Run `govendor add +external` from top-level directory + - Run `make pkg-add PKG=foo/bar` from top-level directory + +* If you have dependencies for ``Minio`` which needs to be removed + - Edit your code to not import foo/bar + - Run `make pkg-remove PKG=foo/bar` from top-level directory * When you're ready to create a pull request, be sure to: - Have test cases for the new code. If you have questions about how to do it, please ask in your pull request. diff --git a/Makefile b/Makefile index 3c63b1768..b430a0f2c 100644 --- a/Makefile +++ b/Makefile @@ -50,6 +50,12 @@ genversion: @echo "Generating new minio version.go" @go run genversion.go +pkg-remove: + @GO15VENDOREXPERIMENT=1 govendor remove $(PKG) + +pkg-add: + @GO15VENDOREXPERIMENT=1 govendor add $(PKG) + install: gomake-all clean: