9

Improve error message when unable to initialize git index repo by nipunn1313 · P...

 3 years ago
source link: https://github.com/rust-lang/cargo/pull/9869
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Copy link

Contributor

nipunn1313 commented 14 days ago

edited

With this - it'll be more obvious which git repo
couldn't be initialized.

Looks like this

➜  cargo RUST_BACKTRACE=1 target/debug/cargo build
error: failed to get `anyhow` as a dependency of package `cargo v0.57.0 (/Users/nipunn/src/cargo)`

Caused by:
  failed to initialize index git repository (in "/Users/nipunn/.cargo/registry/index/github.com-1ecc6299db9ec823")

Caused by:
  failed to parse config file: invalid configuration key (in /Users/nipunn/.config/git/config:1); class=Config (7)

Does the best we can with #9854 - since I don't think it can actually be fixed.
Fixes #9854


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK