【发布时间】:2016-12-12 02:49:45
【问题描述】:
由于“id 不匹配”错误,我今天无法使用 cargo 构建。
这是怎么回事?
$ rustup default stable
info: using existing install for 'stable-x86_64-apple-darwin'
info: default toolchain set to 'stable-x86_64-apple-darwin'
stable-x86_64-apple-darwin unchanged - rustc 1.13.0 (2c6933acc 2016-11-07)
$ git clone https://github.com/serde-rs/json
Cloning into 'json'...
remote: Counting objects: 1755, done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 1755 (delta 7), reused 0 (delta 0), pack-reused 1729
Receiving objects: 100% (1755/1755), 401.86 KiB | 431.00 KiB/s, done.
Resolving deltas: 100% (717/717), done.
Checking connectivity... done.
$ cd json/json
$ cargo build --verbose
Updating registry `https://github.com/rust-lang/crates.io-index`
error: failed to load source for a dependency on `clippy`
Caused by:
Unable to update registry https://github.com/rust-lang/crates.io-index
Caused by:
failed to fetch `https://github.com/rust-lang/crates.io-index`
Caused by:
[9/-3] Object not found - no match for id (aaceb5b4ca9ce0a6e5a02f86cea5635f721d29d8)
【问题讨论】:
-
为我工作。似乎是暂时的网络错误。
-
不是网络问题。我的 ~/.cargo/registry 中有些东西很狡猾
标签: rust rust-cargo