-
Notifications
You must be signed in to change notification settings - Fork 123
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
Failure to import Google annotations proto #1300
Comments
Indeed we don't currently include those by default. The A quick solution would be to get the relevant proto files from https://github.com/googleapis/googleapis and include them in your project. A second option is loading these .proto's from an artifact. This is not directly supported right now - the discussion under #152 contains a way to achieve this, though it is still rather verbose. A third option is loading akka-grpc as a plugin to protobuf-maven-plugin instead of using the dedicated plugin. This can be done with something like:
This is not really properly documented right now yet, unfortunately. |
Nice, thanks! I don't know if I should close or leave it open for tracking. Feel free to close if better for the team. |
I guess the first option is covered by the docs and the second option is covered by #152, so nothing further to do there. I'm OK with leaving this issue open until we either have the third option documented, or have created an issue dedicated to documenting it. |
Versions used
Akka version: 1.1.1
Expected Behavior
When creating the Java files from protobuf in Maven with
I'd expect the compiler to be able to pick up the standard file
google/api/annotations.proto
and correctly compile the protobufs.Actual Behavior
The compilation fails with
For comparison, using
correctly creates the Java implementations.
I have also tried configuring
<protocVersion>-v3.8.0</protocVersion>
to match the versions but it gives the same error.Relevant logs
Relevant build logs shared above.
Reproducible Test Case
I'm currently unsure what's the best way to provide the reproducibility instructions. This example could be used as a base proto.
The text was updated successfully, but these errors were encountered: