-
-
Notifications
You must be signed in to change notification settings - Fork 638
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
Turn off the legacy options parser. #21577
Conversation
Getting a head start on this, but will not merge until we cut the 2.24.x release branch (when I will also add an entry in the 2.25.x release notes). |
30bf90d
to
4d4f6a5
Compare
574e3e5
to
6ec85eb
Compare
Only use the native parser from now on. Future changes will strip out the legacy parser's code.
6ec85eb
to
85f6ba2
Compare
@@ -279,9 +277,7 @@ def verify_configs(self, global_config: Config) -> None: | |||
section_to_valid_options = {} | |||
for scope in self.known_scope_to_info: | |||
section = GLOBAL_SCOPE_CONFIG_SECTION if scope == GLOBAL_SCOPE else scope | |||
section_to_valid_options[section] = set( | |||
self.for_scope(scope, check_deprecations=False, log_parser_warnings=True) |
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.
log_parser_warnings
was only consumed by the legacy parser.
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.
🥳
Only use the native parser from now on.
Future changes will strip out the legacy parser's code.