This repository was archived by the owner on Sep 24, 2025. It is now read-only.
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
Uh oh!
There was an error while loading. Please reload this page.
-
Sample repository: https://github.com/tamuhey/bazel_tonic_sample
I want to use tonic-health crate, which uses
protocin itsbuild.rs.Now,
bazel buildis failing with the following error:This indicates
build.rscouldn't findprotoc.I can pass the build if I manually edit
BUILD.tonic-health.bazelwhich is generated bycargo-razeand addPROTOCenv var andprotocdata into:tonic_health_build_script, but I don't want to edit the machine-generated file.And I know I can pass the
protocbinary to the build environment with CrateSettings.data_dependencies.However, I don't know how to set the binary path to
PROTOCenv var.How to do that?
Beta Was this translation helpful? Give feedback.
All reactions