Replies: 2 comments
-
This is not a good answer. I am working on getting tonic to work with rules_proto_grpc as fairly out of the box. I might be messing with this and have a better answer when I am further down that road. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here's how I made this work:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Sample repository: https://github.com/tamuhey/bazel_tonic_sample
I want to use tonic-health crate, which uses
protoc
in itsbuild.rs
.Now,
bazel build
is failing with the following error:This indicates
build.rs
couldn't findprotoc
.I can pass the build if I manually edit
BUILD.tonic-health.bazel
which is generated bycargo-raze
and addPROTOC
env var andprotoc
data into:tonic_health_build_script
, but I don't want to edit the machine-generated file.And I know I can pass the
protoc
binary to the build environment with CrateSettings.data_dependencies.However, I don't know how to set the binary path to
PROTOC
env var.How to do that?
Beta Was this translation helpful? Give feedback.
All reactions