cargo
cargo copied to clipboard
Add retry support to sparse registries
Sparse (HTTP) registries currently do not respect Cargo's retry policy for http requests.
This change makes sparse registries use the same retry system as package downloads.
r? @epage
(rust-highfive has picked a reviewer for you, use r? to override)
r? @Eh2406
:umbrella: The latest upstream changes (presumably #11068) made this pull request unmergeable. Please resolve the merge conflicts.
Had some time to look this over and it looks good to me. Ed has some good questions about nomenclature. Is there some way we can add tests? Perhaps a setup like #11062 where the server takes a few tries to give a 200.
I pulled in the test framework changes from #11062 and added a test.
@bors r+
:pushpin: Commit dcc512b31746cc10a012aae6ad47eada14ed6b06 has been approved by Eh2406
It is now in the queue for this repository.
:hourglass: Testing commit dcc512b31746cc10a012aae6ad47eada14ed6b06 with merge d1a2592265787164f1daec9d6d92a85ed306fbdb...
:sunny: Test successful - checks-actions Approved by: Eh2406 Pushing d1a2592265787164f1daec9d6d92a85ed306fbdb to master...