cargo-edit
cargo-edit copied to clipboard
Work around registry git-fetch errors
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!
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.