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

How can I compile proto files using Protobuf Editions #751

Open
yanivkr opened this issue Mar 17, 2024 · 0 comments
Open

How can I compile proto files using Protobuf Editions #751

yanivkr opened this issue Mar 17, 2024 · 0 comments

Comments

@yanivkr
Copy link

yanivkr commented Mar 17, 2024

Im using the plugin wit 4.26.0 protoc version and I try to compile a file that looks like this:

edition = "2023";

package foo;

message TestEditionMessage {
    string message = 1;
}

and it results with the following error:

protoc: stdout: . stderr: TestEdition.proto: This file uses editions, but --experimental_editions has not been enabled. This syntax is experimental and should be avoided.

Is there a way to pass this flag to the proto compiler?

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

No branches or pull requests

1 participant