Closed zx950921 closed 4 years ago
Hm, this is correct: "127.0.0.1:1080" is not a valid URL and libgit2 is right to reject it here. A better question is how Cargo mangles the values.
As a test, does it work if you set it to http://127.0.0.1:1080
and https://127.0.0.1:1080
instead?
[http]
proxy = "http://127.0.0.1:1080"
[https]
proxy = "https://127.0.0.1:1080"
I change the config file to this,it work well.
The doc of this is: doc
I didn't notice this detail before, The complete http proxy configuration should be "[protocol://]host[:port]"
Thanks for helping
Can you install from master
(at least 96551827f4a5244dd2d54e29dc8b7103e6354398) and try again with your original config? It should work now.
I clone this git and buid the last version,change to original config.run commod "./cargo-install-update install-update -a" get this error
$ ./cargo-install-update install-update -a
Updating registry 'https://github.com/rust-lang/crates.io-index'
Failed to update index repository: SSL error: syscall failure: .
Possibly related to #142? Dunno. It looks like someone really broke libssl (it might or might not be prudent to report this to your distributor) -- thanks for trying, anyway.
Released in v4.2.0
Thank you, I'll try the new version as soon as possible
Bump
three-year bump
my cargo .cargo/config:
I use "cargo update" and "cargo install" to pass the proxy normally.No problem with proxy service. But when using "cargo install-update -a" an error occurs directly, the error content is
rust version is:
cargo version is:cargo 1.48.0-nightly (8777a6b1e 2020-09-15)