其他分享
首页 > 其他分享> > cargo

cargo

作者:互联网

git-fetch-with-cli

[net]
git-fetch-with-cli = true

本地仓库

$ cargo build
    Updating `mirror` index
error: failed to get `libc` as a dependency of package `ndk v0.1.0 (F:\Github\rust\ndk)`

Caused by:
  failed to load source for dependency `libc`

Caused by:
  Unable to update registry `crates-io`

Caused by:
  failed to update replaced source registry `crates-io`

Caused by:
  failed to fetch `file:///E:/crates.io-index-master`

Caused by:
  process didn't exit successfully: `git fetch --force --update-head-ok file:///E:/crates.io-index-master +HEAD:refs/remotes/origin/HEAD
` (exit code: 128)
  --- stderr
  fatal: '/E:/crates.io-index-master' does not appear to be a git repository
  fatal: Could not read from remote repository.

  Please make sure you have the correct access rights
  and the repository exists.

标签:cargo,git,index,Caused,crates,failed,io
来源: https://www.cnblogs.com/develon/p/16517974.html