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:
Harshavardhana
2015-08-22 21:41:09 -07:00
3 changed files with 11 additions and 4 deletions
+5 -1
View File
@@ -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.
+6
View File
@@ -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:
-3
View File
@@ -156,9 +156,6 @@ VERSION:
}
func main() {
// Enable GOMAXPROCS to default to number of CPUs.
runtime.GOMAXPROCS(runtime.NumCPU())
app := registerApp()
app.Before = registerBefore