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
When a macro specifies a label string as a key in a select, this label
is resolved relative to the site of use rather than the .bzl file the
macro is defined in. The resolution will lead to incorrect results if
the repository that uses the macro has a different repo mapping, e.g.
because it is created by another Bazel module.
This can be solved by allowing macros to specify label instances created
with the `Label` constructor instead of label strings everywhere, which
previously was not possible in select.
This commit also updates the docs for Label, select and macros.
Fixesbazelbuild#14259.
Closesbazelbuild#14447.
PiperOrigin-RevId: 417386977
(cherry picked from commit 69f8b17)
Co-authored-by: Fabian Meumertzheim <[email protected]>
0 commit comments