我得到了
Command failed due to unhandled error: reference 'refs/remotes/origin/master' not found;
class=Reference (4); code=NotFound (-3)
在尝试添加货物时。
我已删除~/.cargo/registry
,并通过rustup重新安装,但是没有运气。当我执行cargo add flexbuffers
时会抛出该异常,但它不仅限于该程序包-它不适用于其他程序,例如SERDE。
答案 0 :(得分:0)
我必须:
mv ~/.cargo/registry/index/github.com-*/.git/refs/remotes/origin/HEAD \
~/.cargo/registry/index/github.com-*/.git/refs/remotes/origin/master
由于this issue。