-
Notifications
You must be signed in to change notification settings - Fork 112
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
Add support for import_prefix to protobuf rule #393
Conversation
@Yannic you are my hero, thank you!! i'll give it a shot |
@Yannic, sorry for the delay. i finally had a chance to check this out, and i figured out where to override it (we use it does change the behavior, but, unfortunately, i get a crash of
Obviously, the key here is it looks like the code where this occurs is here in |
@sgammon Thanks for trying this out! I've found some issues with I'm not sure if that'll also fix the bug you're seeing. From what I've seen, there isn't any array access near the location the crash happened, and the error message looks like the Exception Java throws for out-of-bounds array access. What version of Bazel are you using? |
|
Thanks! Creating a |
93d7144
to
cb3133d
Compare
Blocked on bazelbuild/rules_proto#6 |
Withdrawing this for now. I'll send a new PR when [1] is accepted and implemented. [1] https://docs.google.com/document/d/1u95vlQ1lWeQNR4bUw5T4cMeHTGJla2_e1dHHx7v4Dvg/edit |
This change switches
closure_proto_library
to use the binary descriptors returned byproto_library
instead of invokingprotoc
directly on the source files.To reduce the code duplication for Starlark
*_proto_library
implementations, rules_proto is used to generate JavaScript files from proto files.Fixes #390
cc @sgammon