Skip to content
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

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

benjyw
Copy link
Contributor

@benjyw benjyw commented Oct 27, 2024

Only use the native parser from now on.

Future changes will strip out the legacy parser's code.

@benjyw benjyw added the category:internal CI, fixes for not-yet-released features, etc. label Oct 27, 2024
@benjyw
Copy link
Contributor Author

benjyw commented Oct 27, 2024

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).

@benjyw benjyw marked this pull request as draft October 27, 2024 15:41
@benjyw benjyw force-pushed the only_use_native_parser branch 3 times, most recently from 574e3e5 to 6ec85eb Compare November 12, 2024 23:40
@benjyw benjyw marked this pull request as ready for review November 12, 2024 23:40
Only use the native parser from now on.

Future changes will strip out the legacy parser's code.
@@ -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)
Copy link
Contributor Author

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.

@benjyw benjyw requested a review from tdyas November 12, 2024 23:43
Copy link
Contributor

@tgolsson tgolsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥳

@benjyw benjyw merged commit 77446e9 into pantsbuild:main Nov 13, 2024
24 checks passed
@benjyw benjyw deleted the only_use_native_parser branch November 13, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:internal CI, fixes for not-yet-released features, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants