Jens~

Speaking for protobuf, these are semantic versions.  The best practice is
to always regenerate your code.  The official guarantees provided for using
stale generated code are documented at
https://protobuf.dev/support/cross-version-runtime-guarantee/.

gRPC is usually validated to work with a particular release of protobuf and
you would be well advised to use the release that it recommends.  I do not
know what official guarantees they provide.

Cheers,
Matt



On Thu, Jul 6, 2023 at 12:20 AM Jens Troeger <[email protected]> wrote:

> Hello,
>
> I’m a little confused by the various version numbers used by different
> packages, and would like to find some clarity as to which versions can go
> together and which don’t:
>
>    - protocol buffers exist in a version 2
>    <https://protobuf.dev/programming-guides/proto2/> and a version 3
>    <https://protobuf.dev/programming-guides/proto3/>
>    - the current protobuf release is v23.3
>    <https://github.com/protocolbuffers/protobuf/releases>
>    - the current Python package is v4.23.3
>    <https://pypi.org/project/protobuf/4.23.3/>
>
> Then there is the gRPC side of things:
>
>    - gRPC is currently in v1.56.0 <https://github.com/grpc/grpc> (I
>    suspect the version applies across languages)
>    - gRPC tools as well (different packages built from the same repo)
>
> Not sure if these are semantic versions <https://semver.org/> or not.
>
> How does updating the protobuf package(s) interplay with updating the gRPC
> packages? Or — which protobuf works with with gRPC version?
>
> And how does updating the packages impact existing implementation and
> compiled code?
>
> Any insight would be greatly appreciated! Thank you,
> Jens
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/protobuf/6eaf9531-254e-42e3-9a63-b3dc5a0a8a5cn%40googlegroups.com
> <https://groups.google.com/d/msgid/protobuf/6eaf9531-254e-42e3-9a63-b3dc5a0a8a5cn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/CAMiELU0rrLQz6yhL_F5NwmiP-XSe%3DoVN2V5K60C8PyDbSVh4ug%40mail.gmail.com.

Reply via email to