更新:弃用glide,用dep会更好用一些。
glide可以用mirror,但是我的确试了,我这里就是依赖没有变,该查的都查了,没用。所以我直接改了glide.yaml文件,然后glide up。之后修改了本地的别的project之后,git commit 后查看git log的版本号。直接在glide.lock中改掉version号即可。
glide.yaml里面的修改。
- package: xxxxxx/blahblah
repo: file:///Users/xxx/gocode/src/xxxxxx/blahblah
vcs: git
在glide up之后会glide yaml里面会是这样,之后就直接修改version就ok了。
name: xxxxxx/blahblah
version: 6a9e318dc014183d04de97d49b28b2ea7453f489
repo: file:///Users/xxx/gocode/src/xxxxxx/blahblah
vcs: git
subpackages:
- .gen/go/infra/ctf/config
网友评论