美文网首页
用glide调试依赖别的repo

用glide调试依赖别的repo

作者: 听海吹牛逼的声音 | 来源:发表于2018-10-03 12:15 被阅读0次

    更新:弃用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
    

    相关文章

      网友评论

          本文标题:用glide调试依赖别的repo

          本文链接:https://www.haomeiwen.com/subject/xvpzoftx.html