USAGE:
glide [global options] command [command options] [arguments...]
VERSION:
v0.13.1
COMMANDS:
create, init Initialize a new project, creating a glide.yaml file
config-wizard, cw Wizard that makes optional suggestions to improve config in a glide.yaml file.
get Install one or more packages into `vendor/` and add dependency to glide.yaml.
remove, rm Remove a package from the glide.yaml file, and regenerate the lock file.
import Import files from other dependency management systems.
name Print the name of this project.
novendor, nv List all non-vendor paths in a directory.
rebuild Rebuild ('go build') the dependencies
install, i Install a project's dependencies
update, up Update a project's dependencies
tree (Deprecated) Tree prints the dependencies of this project as a tree.
list List prints all dependencies that the present code references.
info Info prints information about this project
cache-clear, cc Clears the Glide cache.
about Learn about Glide
mirror Manage mirrors
help, h Shows a list of commands or helpfor one command
对于被墙的站点使用镜像
原版不支持下层路径
# glide mirror set https://golang.org/x/net https://github.com/golang/net.git --vcs git
[INFO] No mirrors.yaml file exists. Creating new one
[INFO] https://golang.org/x/net being set to https://github.com/golang/net.git
[INFO] mirrors.yaml written with changes
# glide mirror set https://golang.org/x/sys https://github.com/golang/sys.git --vcs git
[INFO] https://golang.org/x/sys being set to https://github.com/golang/sys.git
[INFO] mirrors.yaml written with changes
需使用 https://github.com/xkeyideal/glide.git 这个hack版本
go get -u -v github.com/xkeyideal/glide
go install -u -v github.com/xkeyideal/glide
# glide mirror set https://golang.org/x/net/websocket https://github.com/golang/net.git --base golang.org/x/net# glide mirror set https://golang.org/x/sys/unix https://github.com/golang/sys.git --base golang.org/x/sys
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类