Skip to content

incompatible_unambiguous_label_stringification #16196

Description

@Wyverald

To fix #15916, we'll be setting the flag --incompatible_unambiguous_label_stringification to true in Bazel 6.0. This means that labels in the main repo will have an @ prepended to them when stringified, i.e. str(Label("@//foo:bar")) will be "@//foo:bar", instead of "//foo:bar".

Note that if --enable_bzlmod is specified, then the string will contain an extra @ ("@@//foo:bar"), using the canonical label literal syntax (see https://docs.google.com/document/d/1N81qfCa8oskCk5LqTW-LNthy6EBrDot7bdUsjz6JFC4/edit?usp=sharing).

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-change-6.0Incompatible flags to be flipped in Bazel 6.0incompatible-changeIncompatible/breaking changemigration-readyIncompatible flag is ready for migration with Bazel rolling releases or Bazel@last_green

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions