Question about aspect implementation function signature #24041
shayanhoshyari
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am relatively new to Bazel (I do have extensive experience with an in-house artifact based build system). I have been reading through aspects. And saw the following function signature:
https://bazel.build/rules/lib/globals/bzl.html#parameters_1
And
ctx.rule
sayshttps://bazel.build/rules/lib/builtins/ctx#rule
My question is what was the motivation behind this two inconsistent ways of passing information about the current rule to the function? For the "target" part, an extra argument is used. Whereas, for the rule_attributes part, it is attached to the ctx.
Beta Was this translation helpful? Give feedback.
All reactions