-
Notifications
You must be signed in to change notification settings - Fork 153
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 add
no longer works with Git using SSH in 0.8.0
#515
Comments
I assume regular cargo commands can successfully interact with the registry? |
Also, could you try with |
@epage Yes, regular cargo commands can interact with the registry just fine. They also seem to respect the I tried running |
|
This is a regression introduced in #484. Opened frewsxcv/rust-crates-index#65 upstream.
That's a separate issue, see #510. |
In part, I'm tempted t revert #484. On the other hand, I'm unsure how much to worry about |
Looks like we need to be tracking frewsxcv/rust-crates-index#37 |
The best workaround I found for this:
Seems to be working well because |
Upgrade all proj-sys and proj dependency versions to the latest. For consistency all versions are fully-specified. The only exception is the [approx](https://crates.io/crates/approx) lib because the trait is implemented upstream in `geo-types`. Perhaps if we change geo-types to use `approx = "*"`, it could work? It is fairly easy to upgrade them now using [cargo upgrade](https://lib.rs/crates/cargo-edit). I usually run it in offline mode due to an [issue](killercup/cargo-edit#515 (comment)) ``` cargo update && cargo upgrade --offline --workspace ```
116: Upgrade dependencies except "approx" r=frewsxcv a=nyurik Upgrade all proj-sys and proj dependency versions to the latest. For consistency all versions are fully-specified. The only exception is the [approx](https://crates.io/crates/approx) lib because the trait is implemented upstream in `geo-types`. Perhaps if we change geo-types to use `approx = "*"`, it could work? It is fairly easy to upgrade them now using [cargo upgrade](https://lib.rs/crates/cargo-edit). I usually run it in offline mode due to an [issue](killercup/cargo-edit#515 (comment)) ``` cargo update && cargo upgrade --offline --workspace ``` Co-authored-by: Yuri Astrakhan <[email protected]>
I've configured Git to use SSH by default for all GitHub URLs, including HTTPS, which the command:
$ git config --global [email protected]:.insteadof https://github.com/
which will replace the prefix
https://github.com/
with[email protected]:
in all git URLs.This works perfectly fine when pulling the crates.io index with Git:
But it does not work when running
cargo add
:Steps to reproduce:
cargo-edit
version 0.8.0.cargo add serde
in a clean Rust project. This works without any errors.~/.ssh/id_rsa
.git config --global [email protected]:.insteadof https://github.com/
.I'm unable to reproduce the issue with version 0.7.0, so this seems to have been broken with the release of 0.8.0.
The text was updated successfully, but these errors were encountered: