-
Notifications
You must be signed in to change notification settings - Fork 505
Adding select statements for build script environment and data attributes in bzlmod #3511
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
Conversation
15b7d65
to
72fb619
Compare
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 reasonable to me - ideally we'd have more expressive annotations, or a helper function to generate this stuff, but this opens up capabilities we currently lack :) Thanks!
What would a helper function look like in this scenario? I'm unsure how to add functions into I had thought about adding a new tag class such as:
But felt that was a little messy too as it isn't part of the original annotation. Have you any suggestions? |
416dc52
to
9b7635b
Compare
9b7635b
to
f855550
Compare
These aren't currently supported by Bazel, but there's perpetually discussion about them :) sorry, I was saying "ideally" as in "if Bazel were more capable" rather than "if Finn put in more work" :D
This kind of new tag class is probably the nicest way to express this at the moment tbh, I wouldn't complain about this API at all. But also happy to merge this as-is if you don't fancy putting it together :) |
Merge as is for now and I'll consider the latter API. |
@illicitonion can we go with this as is for now? |
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.
Weird, I thought I'd already merged this - sorry for the delay!
An implementation to bring some select statement functionality which are available in repository rules but not bzlmod.
Since a dict of dicts is not supported, I've opted for a dict of json string which gets decoded on the other end.