Skip to content
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

Support socks5 #546

Closed
oovm opened this issue Nov 22, 2021 · 4 comments
Closed

Support socks5 #546

oovm opened this issue Nov 22, 2021 · 4 comments

Comments

@oovm
Copy link

oovm commented Nov 22, 2021

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)
@cg31
Copy link

cg31 commented May 25, 2022

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
Copy link

cg31 commented May 25, 2022

I tried using git-cli to update registry index, it indeed fixed the issue:
cg31@42e025e

@oovm
Copy link
Author

oovm commented Mar 22, 2023

Still exists in latest version.

I use update + offline hack now.

cargo update && cargo upgrade --offline

@WiSaGaN
Copy link

WiSaGaN commented Oct 21, 2024

Seems working now after #907 in 0.13.0?

@epage epage closed this as completed Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants