-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Add remote_provider = "..." option, replacing scheme-look-ups #20240
Conversation
9b71329
to
a9c19a8
Compare
a9c19a8
to
5479720
Compare
// of truth. | ||
#[derive(Clone, Copy, Debug, strum_macros::EnumString)] | ||
#[strum(serialize_all = "kebab-case")] | ||
pub enum RemoteProvider { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This enum is duplicated in both Rust and Python, but I think that happens elsewhere too (e.g. CacheContentBehavior
), so it seems tolerable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, much cleaner and easy to read now.
This replaces the over-complicated address URI scheme-based look-up from #19827 for deciding on which provider to use with just a normal option
[GLOBAL].remote_provider
. This defaults toreapi
, to preserve the current (stable) behaviour.That is, now, one can set:
Or similar.
Another item in #19694
The commits are somewhat usefully broken up for review.