You should be able to specify your preferred version of the protobuf repo
in your WORKSPACE file. *As you can see
<https://github.com/grpc/grpc/blob/ef2bba6b4cbf77c40c35557b198e63e042634aa5/bazel/grpc_deps.bzl#L164>*,
we only provide a default revision of the protobuf repo when none is
specified by the workspace pulling us in. However, we only test against
this version in CI, so it's possible that you'll have to manually work
through build issues when you supply your desired version.
On Monday, July 6, 2020 at 12:22:38 AM UTC-7 [email protected] wrote:
> Hi all,
>
>
>
> I'd like to use a specific version of protoc (3.9.1) when building a
> library that depends on grpc
>
>
> In the WORKSPACE I have the following lines to load grpc dependencies:
>
>
>
> * load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")*
>
> * grpc_deps()*
>
> * load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl",
> "grpc_extra_deps")*
>
> * grpc_extra_deps()*
>
>
> If I use recent grpc source (1.27+), it uses a version of protobuf that I
> can't set automatically.
>
>
> Is it possible to use a specific version of protoc in this case ?
>
--
You received this message because you are subscribed to the Google Groups
"grpc.io" 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/grpc-io/be827bd1-0c1b-4755-8212-a25564f8536bn%40googlegroups.com.