[git2-curl] The progress bar won't appear when using libcurl as git2 backend #9444
Labels
A-console-output
Area: Terminal output, colors, progress bar, etc.
A-git
Area: anything dealing with git
C-bug
Category: bug
S-blocked-external
Status: ❌ blocked on something out of the direct control of the Cargo project, e.g., upstream fix
Problem
The progress bar won't appear when using libcurl as git2 backend.
Actually it's an issue of
git2-curl
.git2-curl
callscurl_easy_perform
which is synchronous, so all calls ofCurlSubtransport::read
are deferred until the whole response is fed into the memory.Ref: #9395 (comment)
Steps
HTTP_TIMEOUT=5 cargo fetch
.Possible Solution(s)
Modify
git2-curl
int a streaming manner.Notes
This issue is just for record. I'll send a PR to git2-rs after figuring out a reasonable way to perform a stream read.
Output of
cargo version
:The text was updated successfully, but these errors were encountered: