forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow path label syntax for restricted register_toolchains
This change only applies to --experimental_single_package_toolchain_binding mode, which restricts register_toolchains to be clear about binding toolchains in only a single package. path label syntax should be disabled given the semantic intention of --experimental_single_package_toolchain_binding because: If one were to specify register_toolchains("foo/bar/baz"), it may result in bindings to either foo/bar/baz:baz, foo/bar:baz, or foo:bar/baz (depending on which BUILD files are present). Also: add a test that this restriction already exists for register_toolchains in module files (regardless of the restriction flag) PiperOrigin-RevId: 632505958 Change-Id: I38a0b1e12fc4b975ae02f9e5d4e141a3c45d06da
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters