You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
eb5cdcb added built-in env and env_inherit attributes that control the environment of an executable target in a blaze run invocation. It's still possible to define these attributes in custom rules. If that happens, and if they are of the right type (strict dict and string list), they will be interpreted specially, probably contrary to the rule author's intent.
The clearest thing to do would be to prohibit these attribute names in Starlark rules now that they have special meaning. But that's a breaking change and possibly overkill. We should at least document this unintended interaction.
+@katre as reviewer of that change. (label team-Starlark, but really team-BuildLanguage, which we haven't created yet.)
The text was updated successfully, but these errors were encountered:
This avoids unexpected behavior in the case of Skylark rules that happen to use the same attribute names.
Fixesbazelbuild#12758
PiperOrigin-RevId: 349587545
eb5cdcb added built-in
env
andenv_inherit
attributes that control the environment of an executable target in ablaze run
invocation. It's still possible to define these attributes in custom rules. If that happens, and if they are of the right type (strict dict and string list), they will be interpreted specially, probably contrary to the rule author's intent.The clearest thing to do would be to prohibit these attribute names in Starlark rules now that they have special meaning. But that's a breaking change and possibly overkill. We should at least document this unintended interaction.
+@katre as reviewer of that change. (label
team-Starlark
, but reallyteam-BuildLanguage
, which we haven't created yet.)The text was updated successfully, but these errors were encountered: