Cargo: Can not update registry

Created on 22 Apr 2016  路  4Comments  路  Source: rust-lang/cargo

cargo build --verbose
    Updating registry `https://github.com/rust-lang/crates.io-index`
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:
  failed to authenticate when downloading repository

Caused by:
  [23/-1] error authenticating: 

I am sure i can using browser to open https://github.com/rust-lang/crates.io-index
and i can using curl to get it

Most helpful comment

Do you perhaps have an insteadOf entry in you ~/.gitconfig? I believe that a better error message happens on nightly, but Cargo is known to not work with insteadOf configuration.

All 4 comments

After upgrade to rust lang 1.8.0

 cargo build --verbose
    Updating registry `https://github.com/rust-lang/crates.io-index`
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:
  [23/-1] username does not match previous request

Do you perhaps have an insteadOf entry in you ~/.gitconfig? I believe that a better error message happens on nightly, but Cargo is known to not work with insteadOf configuration.

Oh, yes. i have insteadOf settings.

But golang working currect. why cargo not working ?

I means golang will download dependency packages from github also.

see https://github.com/rust-lang/cargo/issues/2078
Now i changed the gitconfig , and it's working now

Was this page helpful?
0 / 5 - 0 ratings