Merge pull request #1028 from harshavardhana/update
Add pkg-add and pkg-remove Makefile options for easily removing and a…
This commit is contained in:
+5
-1
@@ -23,7 +23,11 @@ $ mc --help
|
||||
* If you have additional dependencies for ``mc``, ``mc`` manages its depedencies using [govendor](https://github.com/kardianos/govendor)
|
||||
- Run `go get foo/bar`
|
||||
- Edit your code to import foo/bar
|
||||
- Run `govendor add foo/bar` from top-level folder
|
||||
- Run `make pkg-add PKG=foo/bar` from top-level folder
|
||||
|
||||
* If you have dependencies which needs to be removed from ``mc``
|
||||
- Edit your code to not import foo/bar
|
||||
- Run `make pkg-remove PKG=foo/bar` from top-level folder
|
||||
|
||||
* 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.
|
||||
|
||||
@@ -61,6 +61,12 @@ coverage:
|
||||
@GO15VENDOREXPERIMENT=1 go test -race -coverprofile=cover.out
|
||||
@go tool cover -html=cover.out && echo "Visit your browser"
|
||||
|
||||
pkg-remove:
|
||||
@GO15VENDOREXPERIMENT=1 govendor remove $(PKG)
|
||||
|
||||
pkg-add:
|
||||
@GO15VENDOREXPERIMENT=1 govendor add $(PKG)
|
||||
|
||||
install: gomake-all
|
||||
|
||||
clean:
|
||||
|
||||
Reference in New Issue
Block a user