dep 包更新

1.运行位置,必须位于gopath下,否则会报错如下

root project import: dep does not currently support using GOPATH/src as the project root

即不能位于Gopath /src更新依赖

2.设置gopath (临时gapath)

直接在命令行添加
 export GOPATH=/usr/local/src/go_path

3.重新更新

dep ensure -update -v

猜你喜欢

转载自blog.csdn.net/jiuweiC/article/details/83624101
DEP