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

Go: fix broken ensure the imports are used when importing multiple packages #586

Closed
wants to merge 2 commits into from

Conversation

h-otter
Copy link

@h-otter h-otter commented Apr 12, 2022

Hello!!
This PR fixes #585.

This problem is caused by the fact that enumName (index (externalEnums $) 0) always returns first enum name, even if enumPackages (externalEnums .) returns multiple packages.
With this PR, enumName returns an enum in the specified package.

@h-otter
Copy link
Author

h-otter commented Apr 12, 2022

Although CI is failing for a reason that is probably unrelated to this patch, do I need to do anything?

@h-otter h-otter changed the title fix enumName to select enum in the specified package fix ensure the imports are used breaking when importing multiple packages Apr 12, 2022
@h-otter h-otter changed the title fix ensure the imports are used breaking when importing multiple packages Go: fix ensure the imports are used breaking when importing multiple packages Apr 12, 2022
@h-otter h-otter changed the title Go: fix ensure the imports are used breaking when importing multiple packages Go: fix broken ensure the imports are used when importing multiple packages Apr 12, 2022
@mashail
Copy link

mashail commented Apr 13, 2022

@h-otter thank you so much

@h-otter
Copy link
Author

h-otter commented Apr 19, 2022

Maybe #589 contains a fix of CI failure about zlib version.

@mashail
Copy link

mashail commented Apr 19, 2022

@h-otter thanks

0rax added a commit to tifo/protoc-gen-validate that referenced this pull request Jun 2, 2022
0rax added a commit to tifo/protoc-gen-validate that referenced this pull request Jun 2, 2022
@h-otter
Copy link
Author

h-otter commented Jun 9, 2022

Is there anything else I need to do to get this PR merged?

@fifsky
Copy link

fifsky commented Jun 17, 2022

help

@mashail
Copy link

mashail commented Jul 1, 2022

@h-otter longing for this to get merged

@h-otter
Copy link
Author

h-otter commented Jul 22, 2022

@snowp @rmichela

After rebase, the CI failure about zlib version was resolved.
However, tests are still failing.
It is difficult for me to understand why the tests are failing.
Would you please help me to fix it?

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.

ensure the imports are used is broken
4 participants