Go Glide Vendor 包管理器 Go Glide

blov2015-11-04 16:00:00 • 4915 次点击    
这是一个分享于 2015-11-04 16:00:00 的项目,其中的信息可能已经有所发展或是发生改变。

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

Package Management for GolangRead More

Latest commit to the master branch on 7-22-2024
Download as zip
授权协议:
MIT
开发语言:
Google Go 查看源码»
操作系统:
跨平台
4915 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传