cargo-edit icon indicating copy to clipboard operation
cargo-edit copied to clipboard

Support socks5

Open oovm opened this issue 3 years ago • 3 comments

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)

oovm avatar Nov 22 '21 15:11 oovm

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.

cg31 avatar May 25 '22 18:05 cg31

I tried using git-cli to update registry index, it indeed fixed the issue: https://github.com/cg31/cargo-edit/commit/42e025e066dbbda820d800500c359d2218e1abbe

cg31 avatar May 25 '22 20:05 cg31