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

feat: skip global registration for internal generated code #82

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

aaronc
Copy link
Member

@aaronc aaronc commented Sep 8, 2022

This PR causes proto files which are generated into internal go packages to not be registered with the global protobuf registries. This allows for packages to generate types which are not accessible or visible to any outside users so that they can precisely control the generation and versioning of these types without having to worry about third party consumers of these types.

In the short term this can help with removing the dependency in orm on api (which is problematic because of the complex api module versioning). It can also be used for other packages depending on api like client/v2 and maybe x/tx.

ref cosmos/cosmos-sdk#11802

@aaronc aaronc marked this pull request as ready for review May 21, 2024 23:02
@aaronc aaronc requested a review from a team as a code owner May 21, 2024 23:02
@aaronc
Copy link
Member Author

aaronc commented May 21, 2024

There is a test failure here which I think is unrelated.

Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

makes sense!
can we add a changelog?

features/protoc/main.go Show resolved Hide resolved
@aaronc
Copy link
Member Author

aaronc commented Jun 25, 2024

makes sense! can we add a changelog?

This repo doesn't have a CHANGELOG 😉 . But I can add one

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