Jhonatan Morais
Jhonatan Morais

Reputation: 301

What is the logic with the libprotoc versions for protoc and protoc-pluguins?

Hello gRPC developers,

I want to understand better the gRPC world. and there is a mismatch with the libprotoc versions that i did not get well.

Im working with ubuntu. and following the protoc instalation guide the version 3.21.12

jhonatan@laptop ~/project> protoc --version
libprotoc 3.21.12

While I was exploring gRPC with GOlang everything was working well. BUT i decided to use a PHP client.

Learning from the official grpc-php-docs i succeed to generate the grpc_php_plugin. but after the compiling a new protoc version was created together with the grpc_php_plugin... and only using this new one is possible to convert my .proto files to PHP.

jhonatan@laptop ~/P/cmake/build/third_party/protobuf ((v1.69.0))> ./protoc --version
libprotoc 29.0

But now I want to understand this better: can you please answer these questions:

  1. Why now there is 2 different versions?
    • libprotoc 3.21.12
    • libprotoc 29.0
  2. Is a must to keep the libprotoc 29.0 and the grpc_php_plugin for future compiling? like when I add new protofile or modify one?
  3. The protoc and plugin was generated using the grpc repo/release v1.69.0. if in the future I regenerate them using v1.90.0... the output will still be compatible?

Thanks in advance.

Upvotes: 0

Views: 32

Answers (0)

Related Questions