-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ProtoInfo.transitive_proto_path does not add genfiles path prefixes #7964
Comments
Might it be the case that this issue is weakly related to #7157? |
I guess that the issue is that the +cc @lberki, as there already is a TODO with his name right above this code. Do you think this analysis is correct? |
There are many TODOs with my name... The way this works with built-in rules is that we pass Not very satisfying, I know :( |
Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so. |
Description of the problem / feature request:
I am currently working on rules_elm: a set of Bazel rules for Elm, a Haskell-like programming language that transpiles to Javascript. As there exists a Protobuf compiler for Elm, I also want to add an
elm_proto_library()
.While implementing this function and testing it on the REv2 protocol, I observed the following build failure:
The Protobuf compiler was being invoked by my build rules as follows:
As I'm using remote builds, I managed to extract a tarball of the input root. As you can see, the .proto files that are reported as missing are stored underneath
bazel-out/k8-fastbuild/genfiles/external/com_google_protobuf/google/protobuf
, while the compiler is invoked to includeexternal/com_google_protobuf
.To obtain the include paths I'm passing to protoc, I'm using ProtoInfo.transitive_proto_path, which I thought would be sufficient. The question is: is Bazel incorrect in that it omits the genfiles prefixes where applicable, or am I supposed to do some post-processing on ProtoInfo.transitive_proto_path?
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Check out bb-browser, commit
e40af2807d5bd4bd5bc80e010f0b880172351415
in branchelm
. Then try to build//cmd/bb_browser/frontend/...
.What operating system are you running Bazel on?
Ubuntu 18.04 LTS
What's the output of
bazel info release
?release 0.24.1
Have you found anything relevant by searching the web?
No. :-(
The text was updated successfully, but these errors were encountered: