Created
February 20, 2017 10:36
-
-
Save xgz123/55197a7ce12bf6b7b86b48f0f3becb1a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 安装最新版 | |
curl https://glide.sh/get | sh | |
# 初始化 | |
# 检测代码,创建包含依赖的 glide.yaml | |
glide init | |
glide create | |
# 编辑 glide.yaml 添加 versions 和其它信息 | |
edit glide.yaml | |
# 修复依赖树 | |
# 安装最新依赖到 vendor 目录。如果没有锁文件会更新 | |
glide update | |
# 添加更多依赖 | |
glide get github.com/foo/bar#^1.2.3 | |
# 从 glide.lock 安装文件 | |
glide install | |
# 返回 glide.yaml 列出的名字 | |
# 主要是写脚本的时候用 | |
glide name | |
# 返回所有依赖的包 | |
glide list | |
glide help | |
glide --version | |
# 修改源仓库位置的能力 | |
glide mirror |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment