-
-
Notifications
You must be signed in to change notification settings - Fork 661
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
Remove deps
attribute from go_proto_library
by automatically inferring them
#3668
Comments
This would be a very welcome contribution. I can review PRs and offer support. I haven't worked with CC @linzhp |
Another source of inspiration might be That said, as someone unfamiliar with the internals of these libraries and aspects in general, I am struggling to reconcile these implementations with Very happy if someone more qualified would pick this up. |
Bump. @fmeum some specific pointers could helpsus. Like @faximan said, I find it hard to understand the implementations comparing to More specifically:
|
Sorry, I didn't get to answer your questions yet. There is now a draft PR: #3706 |
What version of rules_go are you using?
0.37.0
What version of gazelle are you using?
0.31.0
What version of Bazel are you using?
6.2.0
Does this issue reproduce with the latest releases of all the above?
Checking the release notes, the requested feature is not there yet
What operating system and processor architecture are you using?
NA
Any other potentially useful information about your toolchain?
NA
What did you do?
I wrote a
go_proto_library
rule for a correspondingproto_library
rule.For example,
What did you expect to see?
The
deps
attribute needs the correspondingbar_go_proto
to be included. Since theprotos
attribute has the corresponding proto rules, it would be nice to see thebar_go_proto
to be inferred by the rule automatically. In other words, we'd like to see thedeps
attribute removed altogether in thego_proto_library
rule. This is how it works in blaze, and it is implemented usingaspects
there.cc_proto_library
fromrules_cc
andpy_proto_library
fromrules_python
already does this too.Expected:
What did you see instead?
This feature is not part of the releases yet. I can also support in developing this but I'm not sure about the work needed and where.
The text was updated successfully, but these errors were encountered: