Skip to main content

CellRoot

A CellRoot represents the root directory of a cell in Buck2.

CellRoot is typically accessed via the cell_root attribute on labels (e.g., ctx.label.cell_root). For example, given a label root//foo:bar, the cell_root would represent root//.

This type is commonly used with cmd_args.relative_to() to make artifact paths relative to the cell root.