proxy.golang.org : github.com/lunny/gop
Package gop is a project manangement tool for building your golang applications out of global GOPATH. In fact gop will keep both global GOPATH and every project GOPATH. But that means your project will not go-getable. Of course, GOP itself is go-getable. GOP copy all denpendencies from global GOPATH to your project's src/vendor directory and all application's sources are also in src directory. A normal process using gop is below: 1. GOPATH compatible 2. Multiple build targets support 3. Put your projects out of global GOPATH Please ensure you have installed the go command, GOP will invoke it on building or testing Every project should have a GOPATH directory structure and put a gop.yml int the root directory. This is an example project's directory tree. Gop will recognize a gop project which has gop.yml. The file is also a project configuration file. Below is an example. If you didn't define any target, the default target is src/main and the target name is the project name. 1. init Create the default directory structure tree. 2. ensure Automatically copy dependencies from $GOPATH to local project directory. -g will let you automatically call go get <package> when the package is missing on GOPATH. -u will always go get <package> on all the dependencies and copy them to vendor. 3. status List all dependencies of this project and show the status. 4. add Add one or more packages to this project. 5. update Update one or more packages to this project. All missing dependent packages will also be added. -f will update exists dependent packages. 6. rm Remove one or more packages from this project. 7. build Run go build on the src directory. If you want to execute ensure before build, you can use `-e` flag. 8. run Run go run on the src directory. -w will monitor the go source code changes and automatically build and run again. `-e` will automatically execute `ensure` before every time build. 9. test Run go test on the src directory. If you want to execute ensure before build, you can use `-e` flag. 10. release Run go release on the src directory.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/lunny/gop
Keywords:
dependency-manager
, golang
, project-management
, tool
License: MIT
Latest release: about 6 years ago
First release: about 6 years ago
Namespace: github.com/lunny
Stars: 50 on GitHub
Forks: 6 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago