Go GlideVendor 包管理器
Glide 是 Golang 的 Vendor 包管理器,方便你管理 vendor 和 verdor 包。
主要特性:
简单管理依赖
支持 versioning packages,包括 Semantic Versioning 2.0.0 支持
支持 aliasing packages (e.g. for working with github forks)
Remove the need for munging import statements
支持所有
go工具支持 VCS 工具和 Go 支持:
git
bzr
hg
svn
支持定制本地和全局插件 (see docs/plugins.md)
仓库缓存
结构:
- $GOPATH/src/myProject (Your project) | |-- glide.yaml | |-- main.go (Your main go code can live here) | |-- mySubpackage (You can create your own subpackages, too) | | | |-- foo.go | |-- vendor |-- github.com | |-- Masterminds | |-- ... etc.
使用:
$ glide create # Start a new workspaces $ open glide.yaml # and edit away! $ glide get github.com/Masterminds/cookoo # Get a package and add to glide.yaml $ glide install # Install packages and dependencies # work, work, work $ go build # Go tools work normally $ glide up # Update to newest versions of the package
评论
