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

Work around registry git-fetch errors

Open tumluliu opened this issue 4 years ago • 2 comments

Hi there, I am trying to use cargo edit behind a corporate proxy, but got such error:

    Updating 'https://github.com/rust-lang/crates.io-index' index
Command failed due to unhandled error: SSL error: syscall failure: Bad file descriptor; class=Os (2); code=Certificate (-17)

I have already set my git to ignore ssl checking with http.sslverify=false. And in cargo as well with:

[http]
check-revoke = false

But it seems these settings are not picked up by cargo edit. Is that true? How can I configure cargo edit to ignore the ssl cert checking too? Thank you!

tumluliu avatar Nov 30 '21 04:11 tumluliu

cargo has the option to fetch via the command line but we do not which would be one way of resolving this.

As more cargo-edit commands get merged into cargo, this problem will go away.

epage avatar Jul 14 '22 12:07 epage