diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2a9d9da2..7edb9535 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -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. diff --git a/Makefile b/Makefile index 6ba81072..b6f3ee19 100644 --- a/Makefile +++ b/Makefile @@ -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: diff --git a/main.go b/main.go index 96dd684d..b77d19d4 100644 --- a/main.go +++ b/main.go @@ -156,9 +156,6 @@ VERSION: } func main() { - // Enable GOMAXPROCS to default to number of CPUs. - runtime.GOMAXPROCS(runtime.NumCPU()) - app := registerApp() app.Before = registerBefore