dep确保失败,解决失败:无法清理git存储库。

时间:2018-03-24 21:47:10

标签: go dep

我正在尝试导入go repo https://github.com/cloudfoundry/cli

在我的go程序中添加import语句时,我的dep initdep ensure命令失败。

我不确定我无法获得回购的原因是什么。我可以在go / src中执行git clone并且它抱怨本地版本可能不一致。

不确定此特定仓库发生了什么。

bash-3.2$ dep ensure
Solving failure: failed to clean up git repository at /Users/rjain/go/pkg/dep/sources/https---github.com-cloudfoundry-cli - dirty? corrupted? status output: 
 D VERSION

1 个答案:

答案 0 :(得分:1)

这是因为这个仓库有大量的子模块,其中一些是私人仓库,其中一些不再存在。尝试运行FLAG = [0x726F756E, 0xCABEE660, 0xDDC1997D, 0xAA93C38B, 0x87E21216] user_input = bytearray("") def n1(a1,a2,a3): return (a1 - a2 + a3) % 26 + a2 def ENC(a1,a2): if ( a1 > 96 and a1 <= 122 ): return n1(a1, 0x61, a2) if ( a1 <= 64 or a1 > 90 ): return a1 return n1(a1, 0x41, a2) def FINAL(a1,a2): return (a1 << (a2 & 0x1F)) | (a1 >> (-(a2 & 0x1F) & 0x1F)) for i in range(4): enc = 0; for j in range(3): enc |= ENC(user_input[4 * i + j], i) << 8 * (3 - j) v3 = FLAG[i] if( v3 != FINAL(enc, i) ): break ,您将看到错误。 dep似乎试图检查每个子模块。

如果我是你,我会确定我需要的子模块并直接导入它。

相关问题