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

Potential fix for #585 #626

Merged
merged 3 commits into from Sep 21, 2022
Merged

Conversation

eleduardo
Copy link
Contributor

Making the enumpackage function return a struct with the filepath and the enum name to avoid the second lookup. The second lookup seems to have a fixed index which is causing the name of the enum to be stuck regardless of the enum type.

This still seems to account for the original problem of having repeated fields with enums (#529) but instead of trying to re-guess the enum name without context the information is fetch on a single pass to also be consistent while accounting for the name collision.

Signed-off-by: Eduardo Solis <eduardo.solis@mica.io>
@elliotmjackson
Copy link
Contributor

resolves #585

Copy link
Contributor

@elliotmjackson elliotmjackson left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @eleduardo!

@elliotmjackson elliotmjackson merged commit 2eca307 into bufbuild:main Sep 21, 2022
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

2 participants