See https://github.com/Wyverald/bazel-label-transition-test
Basically, when defining a transition:
def _tr_impl(settings, attr):
return {
"@repo//:setting": # goes through repo mapping
"@repo//:target", # does NOT go through repo mapping
}
tr = transition(
implementation = _tr_impl,
inputs = [],
outputs = ["@repo//:setting"], # goes through repo mapping
)
See https://github.com/Wyverald/bazel-label-transition-test
Basically, when defining a transition: