elixir-protobuf / protobuf

A pure Elixir implementation of Google Protobuf.
https://hexdocs.pm/protobuf/readme.html
MIT License
817 stars 142 forks source link

Error while trying to compile: google/cloud/secretmanager/v1/resources.proto #357

Closed nyo16 closed 1 year ago

nyo16 commented 1 year ago

Hi, i am trying to compile some google protos from googleapis repo and getting the bellow error.

google/cloud/secretmanager/v1/resources.proto: is a proto3 file that contains optional fields, but code generator protoc-gen-elixir hasn't been updated to support optional fields in proto3. Please ask the owner of this code generator to support proto3 optional.

The way i am calling the lib is $PROTOC -I $GOOGLEAPIS_PATH \ --plugin=protoc-gen-elixir=$PLUGIN_PATH \ --elixir_out=plugins=grpc:$OUT \ $GOOGLEAPIS_PATH/google/cloud/secretmanager/logging/v1/*.proto

I saw that there is support for optional fields in proto3. Am I missing something?

Thank you

nyo16 commented 1 year ago

Sorry, asdf messed around the version that i had, with 0.12 works great!