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

Filter extend fields based on the emitting rules #2991

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

oldergod
Copy link
Member

@oldergod oldergod commented Jun 14, 2024

Fixes cashapp/misk#3286

This PR filters extend fields (like options) based on the file they are generated in, looking at their package name. Before that, even if one has multiple targets, the first target would generate all the extend fields, all the time.

@oldergod oldergod requested a review from swankjesse June 14, 2024 10:58
@@ -174,12 +174,16 @@ abstract class SchemaHandler {
}
}

// TODO(jwilson): extend emitting rules to support include/exclude of extension fields.
Copy link
Member

Choose a reason for hiding this comment

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

Nice!

@oldergod oldergod merged commit 86fc837 into master Jun 14, 2024
11 checks passed
@oldergod oldergod deleted the bquenaudon.2024-06-14.emitting_rules_for_extend branch June 14, 2024 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants