cargo-edit
cargo-edit copied to clipboard
Support socks5
Failed to run upgrade
after install cargo-edit under socks5.
PS D:\Rust\> cargo upgrade
Updating 'https://github.com/rust-lang/crates.io-index' index
Command failed due to unhandled error: invalid URL: 'socks5://127.0.0.1:7891'; class=Http (34)
It seems this is an error from libgit2, which is used by git2-rs.
I wonder if cargo-edit could use an option "git-fetch-with-cli=true" like cargo to fix it.
I tried using git-cli to update registry index, it indeed fixed the issue: https://github.com/cg31/cargo-edit/commit/42e025e066dbbda820d800500c359d2218e1abbe