繁体   English   中英

dep sure失败,解决失败:无法清理git repository。

[英]dep ensure fails with Solving failure: failed to clean up git repository .

我正在尝试导入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

这是因为此存储库包含大量子模块,其中一些是私有存储库,而其中一些不再存在。 尝试运行dep ensure -v ,您将看到错误。 看来dep试图检出每个子模块。

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM