ConfiguredProvidersLabel
A label is used to represent a configured target.
ConfiguredProvidersLabel.cell
ConfiguredProvidersLabel.cell: str
For the label fbcode//buck2/hello:world (ovr_config//platform/linux:x86_64-fbcode-46b26edb4b80a905)
this gives back fbcode
ConfiguredProvidersLabel.cell_root
ConfiguredProvidersLabel.cell_root: cell_root
Obtain a reference to this target label's cell root. This can be used as if it were an artifact in places that expect one, such as cmd_args().relative_to
.
ConfiguredProvidersLabel.configured_target
def ConfiguredProvidersLabel.configured_target(
) -> configured_target_label
Returns the underlying configured target label, dropping the sub target
ConfiguredProvidersLabel.name
ConfiguredProvidersLabel.name: str
For the label fbcode//buck2/hello:world (ovr_config//platform/linux:x86_64-fbcode-46b26edb4b80a905)
this gives back world
ConfiguredProvidersLabel.package
ConfiguredProvidersLabel.package: str
For the label fbcode//buck2/hello:world (ovr_config//platform/linux:x86_64-fbcode-46b26edb4b80a905)
this gives back buck2/hello
ConfiguredProvidersLabel.path
ConfiguredProvidersLabel.path: CellPath
For the label fbcode//buck2/hello:world (ovr_config//platform/linux:x86_64-fbcode-46b26edb4b80a905)
this gives back fbcode/buck2/hello
ConfiguredProvidersLabel.project_root
ConfiguredProvidersLabel.project_root: project_root
Obtain a reference to the project's root. This can be used as if it were an artifact in places that expect one, such as cmd_args().relative_to
.
ConfiguredProvidersLabel.raw_target
def ConfiguredProvidersLabel.raw_target(
) -> target_label
For the label fbcode//buck2/hello:world (ovr_config//platform/linux:x86_64-fbcode-46b26edb4b80a905)
this returns the unconfigured underlying target label (fbcode//buck2/hello:world
)
ConfiguredProvidersLabel.sub_target
ConfiguredProvidersLabel.sub_target: None | list[str]