Skip to content

Can not update registry #2605

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Apr 22, 2016 · 4 comments
Closed

Can not update registry #2605

ghost opened this issue Apr 22, 2016 · 4 comments

Comments

@ghost
Copy link

ghost commented Apr 22, 2016

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

@ghost
Copy link
Author

ghost commented Apr 22, 2016

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

@alexcrichton
Copy link
Member

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.

@ghost
Copy link
Author

ghost commented Apr 25, 2016

Oh, yes. i have insteadOf settings.

But golang working currect. why cargo not working ?

I means golang will download dependency packages from github also.

@ghost ghost closed this as completed Apr 25, 2016
@ghost
Copy link
Author

ghost commented Apr 25, 2016

see #2078
Now i changed the gitconfig , and it's working now

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant