dep ensure报错unable to update checked out version: fatal: reference is not a tree:

如题所述

第1个回答  2022-07-16

dep ensure报如下错误:

(1) ✗ unable to update checked out version: fatal: reference is not a tree: 2b758aa73013d2b1f11077aeca87ea042a1438bf
(1) : command failed: [git checkout 2b758aa73013d2b1f11077aeca87ea042a1438bf]: exit status 128
(1) ← no more versions of github.com/bradfitz/slice to try; begin backtrack

但是查看过 github.com/bradfitz/slice ,2b758aa73013d2b1f11077aeca87ea042a1438bf命名是master上的最新一条commit。几经尝试和搜索,找到了如下可行的解决方法:

删除 $GOPATH/pkg/dep/sources

参考: https://github.com/golang/dep/issues/699

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网