-
Notifications
You must be signed in to change notification settings - Fork 157
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
Adds args
string_list option to proto_compile
#58
Conversation
* Also makes the `langs` attribute non-mandatory. Closes #57
@perezd Does this LGTY? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Thank you for turning this around so fast.
Interesting second observation, using this approach, I don't believe I can have proto A depend on proto B and have them both appear in a descriptor_set. Can I specify proto_deps in proto_compile in some way? EDIT: Oh wait, spoke too soon, I think the |
Another thing I'm noticing, there is no way to reference well known protos via only proto_compile, is there? That is a filegroup of protos listed at |
I updated the example for |
So that does appear to work, but it feels awkward. I would press forward with this, but I will probably just wrap that in a macro def to reduce the noise at call sites. Larger more strategic question: maybe we should consider making proto_descriptor_set_out a "proto language" rule? Its described as effectively an output target anyhow like java/cpp/etc.: WDYT? |
So what would that look like? Something like...? proto_language(
name = "descriptor",
args = [
"--include_imports",
"--include_source_info",
],
pb_imports = ["external/com_github_google_protobuf/src"],
pb_inputs = ["@com_github_google_protobuf//:well_known_protos"],
)
descriptor_proto_library(
name = "api",
protos = [...],
) |
Yeah I think that makes the most sense. The output of that would be |
Awesome, thank you for this!
…On Mon, Jan 30, 2017 at 10:24 PM Paul Cody Johnston < ***@***.***> wrote:
@perezd <https://github.com/perezd> Merged this and created separate
issue for descriptor language issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABQdgx4PpPruhuSuirK2l3X44oWq9Lqks5rXtOdgaJpZM4LqGWe>
.
|
langs
attribute non-mandatory.Closes #57