-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Unsupported protocol
with sparse registry
#11726
Comments
Thank you for the report. We just found that as well during a recent PR review. Personally I'd like to backport a fix to beta channel, copying what this does: cargo/src/cargo/core/package.rs Lines 738 to 754 in a66f123
|
+1 for a backport. |
Thanks for the pointer, I realized this is 5 years old problem and can be fixed quickly. As someone haven't done any backport before, I found a guide at Backporting. I think it needs 3 PRs in total.
Is that right? |
@bebecue, that's pretty much correct! I might also try to reuse that code snippet if feasible, though it's also fine just copying over at this moment. |
fix: unsupported protocol error on old macos version fix #11726
Rust toolchain |
Problem
When using sparse registry, cargo reports
Unsupported protocol
error.HTTP multiplexing defaults to true at
cargo/src/cargo/sources/registry/http_remote.rs
Lines 223 to 225 in 39c13e6
cargo/src/cargo/sources/registry/http_remote.rs
Lines 555 to 556 in 39c13e6
cargo is dynamic linked to
libcurl
, howeverlibcurl
from Apple in macOS 10.12.6 has noHTTP2
😳Steps
Possible Solution(s)
HTTP/1.1
CARGO_HTTP_MULTIPLEXING
tofalse
iflibcurl
doesn't supportHTTP/2
libcurl
Notes
No response
Version
The text was updated successfully, but these errors were encountered: