Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Accept hypothetical Protobuf Editions files. #470

Merged
merged 2 commits into from
Sep 16, 2024
Merged

Accept hypothetical Protobuf Editions files. #470

merged 2 commits into from
Sep 16, 2024

Conversation

chungyc
Copy link
Member

@chungyc chungyc commented Sep 11, 2024

It will not yet accept actual Protobuf Editions files by restricting the supported edition to LEGACY. This restriction will be lifted once support for edition 2023 is complete with the following changes: https://github.com/chungyc/proto-lens/pull/6, https://github.com/chungyc/proto-lens/pull/7, https://github.com/chungyc/proto-lens/pull/8

For issue #468.

This should successfully generate code for these files.  However, they do not have the correct semantics yet.  `protoc` does not translate equivalent features supported in proto2 and proto3 into previous `FieldOptions` fields, and we must adjust the semantics according to what are specified in `FeatureSet` messages.
It will not accept actual Protobuf Editions files by restricting
the supported edition to `LEGACY`.  This restriction will be
lifted once support for edition 2023 is complete.
@blackgnezdo blackgnezdo merged commit 72d67a1 into google:master Sep 16, 2024
9 checks passed
@chungyc chungyc deleted the editions-incremental branch October 1, 2024 23:11
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants