0

在 govendor 中,可以为依赖项的每个包指定您想要的修订版。例如:

回购“github.com/myorg/myrepo”。

使用修订版“16b65b2a4e3d30f47875b1cb2abc8a43fc”打包“github.com/myorg/myrepo/x”

使用修订版“2190sdfds034e3d30f47875b1cb2a434c”打包“github.com/myorg/myrepo/y”

代码示例:

{
    "checksumSHA1": "KP40Q38cB087cxh4TU1LWe1KOP4=",
    "path": "github.com/myorg/myrepo/x",
    "revision": "16b65b2a4e3d30f47875b1cb2abc8a43fc",
    "revisionTime": "2016-10-21T14:31:02Z"
},
{
    "checksumSHA1": "KP40Q38cB087cxh4TU1LWe1KOP4=",
    "path": "github.com/myorg/myrepo/y",
    "revision": "2190sdfds034e3d30f47875b1cb2a434c",
    "revisionTime": "2017-12-21T14:31:02Z"
},

这对 Dep 可行吗?

谢谢!

4

0 回答 0