You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
Building Go modules from private repositories requires URL substitution in git, but it has to be done globally, because local solution doesn't work, probably a git bug. Sadly, it breaks Cargo fetching mechanism with the following error:
18:41:34
Updating crates.io index
error: failed to fetch `https://github.com/rust-lang/crates.io-index`
Caused by:
failed to authenticate when downloading repository: [email protected]:rust-lang/crates.io-index
* attempted ssh-agent authentication, but no usernames succeeded: `git`
if the git CLI succeeds then `net.git-fetch-with-cli` may help here
https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Caused by:
error authenticating: no auth sock variable; class=Ssh (23)
While it can be workarounded by adding and removing this substitution rule every time you have to switch between Go and Rust development, it would be awesome to make cargo work in this scenario too.
[i] ℤ cargo --version
cargo 1.48.0 (65cbdd2dc 2020-10-14)
[i] ℤ rustc --version
rustc 1.48.0 (7eac88abb 2020-11-16)
[i] ℤ rustup --version
rustup 1.23.1 (3df2264a9 2020-11-30)
info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.48.0 (7eac88abb 2020-11-16)`
Fedora 33 x86_64
The text was updated successfully, but these errors were encountered:
There's a workaround noted in #8172 (comment) about specifying a specific insteadOf for Cargo. Additionally, net.git-fetch-with-cli might be an option.
Problem
Building Go modules from private repositories requires URL substitution in git, but it has to be done globally, because local solution doesn't work, probably a git bug. Sadly, it breaks Cargo fetching mechanism with the following error:
While it can be workarounded by adding and removing this substitution rule every time you have to switch between Go and Rust development, it would be awesome to make cargo work in this scenario too.
Steps
Notes
Output of
cargo version
:Fedora 33 x86_64
The text was updated successfully, but these errors were encountered: