-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Fix type checking for colliding aspect-on-aspect attributes #19449
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
src/main/java/com/google/devtools/build/lib/analysis/ConfiguredTargetFactory.java
Outdated
Show resolved
Hide resolved
Previously, Starlark-defined aspects-on-aspects saw their own attribute values but the type declared by the underlying aspect in case of an attribute name collision. As a side effect of this change, native aspects-on-aspects now see their own attribute values instead of those of the underlying aspect.
|
another case that will have a different behaviour with this change is for aspect propagating to its underlying aspect dependency: currently when building |
|
Thanks for the interesting example! If I understand this correctly, does it mean that @mai93 #19442 does require the current PR. Would you like to block it on implementing proper separation or do you see that as an independent effort? I am fine with both, it's just that our window to flip the flag will close for a somewhat long time when we don't get it into 7.0.0. But the flag is also not blocking anything else, so we are in no particular hurry to flip it. |
yes, the attributes of the rule and the underlying aspects are grouped under
I thought the current PR is only needed for |
|
@mai93 Is this still relevant with your recent work? |
|
I think we can close this, the test |
Previously, Starlark-defined aspects-on-aspects saw their own attribute values but the type declared by the underlying aspect in case of an attribute name collision.
As a side effect of this change, native aspects-on-aspects now see their own attribute values instead of those of the underlying aspect.