-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
cargo can't fetch crates.io-index on windows #7138
Comments
Hi @smallnest, I'm sorry nobody responded to your issue. Are you still able to reproduce this issue with the latest nightly version of cargo? I've been unable to find a way to get it to happen, and I'm a bit confused why it is trying to start an SSH session for an https url. If you can still reproduce it, can you copy your git configuration ( |
I think it should be caused by my proxy. I have updated my proxy, cargo works well. Thanks @ehuss |
I've exactly the same issue. I reckon it was related the powershell hijack ssh keyword. [Update] I have created a config file at CARGO_HOME with the content below fix this issue
|
Thanks @singlewind :) |
Hi,
I am running on Windows 10. Here is my git config:
When I tried @singlewind 's solution, I got this error:
On the other hand, I can still use git to fetch and push my repositories at github with no problem. Any idea what's going on? Any possible solutions? Thanks. Henry |
I found the solution. In my case, I have to change my .gitconfig file and comment out the following:
|
Is there any other workaround? I like having |
@Mellbourn There is a workaround noted in #8172 (comment). |
Use |
Worked for me also |
Problem
install the latest nightly rust and add
rocket = "0.4.2"
in dependency.run
cargo run
but can't fetch cargo.index. The error log as below:environment
0、 windows 10/git2.22.0.1/TortoiseGit 2.8.0.0 (use openSSH)
1、
cargo -version
c:> cargo --version cargo 1.38.0-nightly (677a180f4 2019-07-08)
2、
rustup show
C:\>rustup show Default host: x86_64-pc-windows-msvc installed toolchains -------------------- stable-x86_64-pc-windows-msvc nightly-x86_64-pc-windows-msvc (default) active toolchain ---------------- nightly-x86_64-pc-windows-msvc (default) rustc 1.38.0-nightly (83e4eed16 2019-07-14)
It is normal on my Mac.
The text was updated successfully, but these errors were encountered: