You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of #11356 - arlosi:sparse-publish, r=epage
Fix wait-for-publish with sparse registry
The `wait-for-publish` feature doesn't work when publishing a new version of an existing crate on a sparse registry.
The `invalidate_cache` method doesn't clear the `fresh` list, so repeated requests just use the in-memory data if it's available. This didn't show up in the tests, because the test only simulated the `not found` to `crate available` transition, rather than the `old file` to `crate available` transition.
This change modifies the test by capturing the publish request, then deferring it until after later request for the index file.
r? `@epage`
Fixes#11314
0 commit comments