Skip to content

For transitions on label build settings, the value doesn't go through repo mapping #15728

@Wyverald

Description

@Wyverald

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
)

Metadata

Metadata

Assignees

Labels

P2We'll consider working on this in future. (Assignee optional)area-BzlmodBzlmod-specific PRs, issues, and feature requeststeam-Configurabilityplatforms, toolchains, cquery, select(), config transitionsteam-ExternalDepsExternal dependency handling, remote repositiories, WORKSPACE file.type: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions