mirror of
https://github.com/minio/minio.git
synced 2024-12-26 23:25:54 -05:00
Merge pull request #808 from harshavardhana/pkg
Add package add and remove commands to Makefile
This commit is contained in:
commit
526c8b4d76
@ -53,9 +53,11 @@ Building Libraries
|
|||||||
* If you have additional dependencies for ``Minio``, ``Minio`` manages its depedencies using [govendor](https://github.com/kardianos/govendor)
|
* If you have additional dependencies for ``Minio``, ``Minio`` manages its depedencies using [govendor](https://github.com/kardianos/govendor)
|
||||||
- Run `go get foo/bar`
|
- Run `go get foo/bar`
|
||||||
- Edit your code to import foo/bar
|
- Edit your code to import foo/bar
|
||||||
- export GO15VENDOREXPERIMENT=1
|
- Run `make pkg-add PKG=foo/bar` from top-level directory
|
||||||
- Run `govendor remove +vendor` from top-level directory
|
|
||||||
- Run `govendor add +external` 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:
|
* 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.
|
- Have test cases for the new code. If you have questions about how to do it, please ask in your pull request.
|
||||||
|
6
Makefile
6
Makefile
@ -50,6 +50,12 @@ genversion:
|
|||||||
@echo "Generating new minio version.go"
|
@echo "Generating new minio version.go"
|
||||||
@go run genversion.go
|
@go run genversion.go
|
||||||
|
|
||||||
|
pkg-remove:
|
||||||
|
@GO15VENDOREXPERIMENT=1 govendor remove $(PKG)
|
||||||
|
|
||||||
|
pkg-add:
|
||||||
|
@GO15VENDOREXPERIMENT=1 govendor add $(PKG)
|
||||||
|
|
||||||
install: gomake-all
|
install: gomake-all
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user