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

Fix bug resolving enum across multiple files. #31

Merged
merged 1 commit into from
Sep 18, 2023

Conversation

rkrishnan2012
Copy link
Contributor

@rkrishnan2012 rkrishnan2012 commented Sep 18, 2023

In utils.rs, the find_enum_by_name and find_enum_by_name_in_message functions only look at the first descriptor that matches the package name. If there are multiple top-level descriptors with the same package name, the plugin doesn't look at each of them.

The unit test attached reproduces this issue when tested against the previous version.

Issue: #30

@rholshausen rholshausen merged commit bd33f05 into pactflow:main Sep 18, 2023
4 of 5 checks passed
@rholshausen
Copy link
Contributor

Awesome, thanks for the PR!

@rkrishnan2012
Copy link
Contributor Author

@rholshausen or @mefellows - Would it be possible to trigger a bug fix release with this patch? We have a couple of folks who are looking to have this to unblock themselves.

@rkrishnan2012 rkrishnan2012 deleted the rk/enum_bug_fix branch September 20, 2023 19:05
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.

2 participants