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

Add editions helper functions for resolving features to protoutil #283

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

jhump
Copy link
Member

@jhump jhump commented Apr 16, 2024

This helpers, in particular protoutil.ResolveFeature and protoutil.ResolveCustomFeature, will be used from updated checks for buf breaking, which will allow the tool to understand the features-related semantics of the schema.

This way, it can correctly report issues with incompatible changes to features in editions source files. And it can also allow changing a file's syntax (like migrating from proto2 or proto3 to editions) as long as there are no actual semantic changes to the schema.

@jhump jhump requested a review from emcfarlane April 16, 2024 22:58
@jhump
Copy link
Member Author

jhump commented Apr 16, 2024

@emcfarlane, this is the last PR I expect in protocompile for the time being. This should be everything needed to finish implementing changes to buf breaking.

In two or three weeks, we should hopefully be able to circle back and make the final changes in this repo, and make the Editions support generally available (instead of only opt-in for testing).

Copy link
Contributor

@emcfarlane emcfarlane left a comment

Choose a reason for hiding this comment

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

lgtm!

@jhump jhump merged commit 59e75db into main Apr 17, 2024
9 checks passed
@jhump jhump deleted the jh/expose-resolve-feature branch April 17, 2024 17:52
kralicky pushed a commit to kralicky/protocompile that referenced this pull request May 19, 2024
…fbuild#283)

These helpers, in particular `protoutil.ResolveFeature` and
`protoutil.ResolveCustomFeature`, will be used from updated checks for
`buf breaking`, which will allow the tool to understand the
features-related semantics of the schema.

This way, it can correctly report issues with incompatible changes to
features in editions source files. And it can also allow changing a
file's syntax (like migrating from proto2 or proto3 to editions) as long
as there are no actual semantic changes to the schema.

(cherry picked from commit 59e75db)
kralicky pushed a commit to kralicky/protocompile that referenced this pull request Jun 8, 2024
…fbuild#283)

These helpers, in particular `protoutil.ResolveFeature` and
`protoutil.ResolveCustomFeature`, will be used from updated checks for
`buf breaking`, which will allow the tool to understand the
features-related semantics of the schema.

This way, it can correctly report issues with incompatible changes to
features in editions source files. And it can also allow changing a
file's syntax (like migrating from proto2 or proto3 to editions) as long
as there are no actual semantic changes to the schema.

(cherry picked from commit 59e75db)
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