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: Use a hashed id for default root name #1575

Merged
merged 4 commits into from
Jul 8, 2024

Conversation

orgads
Copy link
Contributor

@orgads orgads commented Mar 27, 2024

When multiple packages are imported, and all of them were generated in a way that uses default as the root name, each imported package overwrites the definitions of the previous ones.

Solve by assigning a hashed (fallback) name to each generated package.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea

  • Ensure the tests and linter pass

  • Code coverage does not decrease (if any source code was changed)

  • Appropriate docs were updated (if necessary)

  • Relates to compileProtos: Generating for esm/src uses default root #1529 🦕

@orgads orgads requested review from a team as code owners March 27, 2024 17:26
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Mar 27, 2024
When multiple packages are imported, and all of them were generated in a
way that uses default as the root name, each imported package overwrites
the definitions of the previous ones.

Solve by assigning a hashed (fallback) name to each generated package.
@orgads orgads changed the title Use a hashed id for default root name fix: Use a hashed id for default root name Mar 27, 2024
@orgads
Copy link
Contributor Author

orgads commented Mar 28, 2024

@sofisl

@leahecole leahecole added the kokoro:run Add this label to force Kokoro to re-run the tests. label May 21, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label May 21, 2024
@sofisl
Copy link
Contributor

sofisl commented Jun 26, 2024

/gcbrun

@ddelgrosso1 ddelgrosso1 added the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 8, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Jul 8, 2024
@ddelgrosso1 ddelgrosso1 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 8, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jul 8, 2024
@ddelgrosso1 ddelgrosso1 merged commit e3cf430 into googleapis:main Jul 8, 2024
18 checks passed
@release-please release-please bot mentioned this pull request Jul 8, 2024
@orgads orgads deleted the hashed-id branch July 9, 2024 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants