-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionally restrict toolchain registration to single packages
This restriction is tied to an experimental feature flag --experimental_single_package_toolchain_binding. This flag will exist as an option for projects to restrict more complex bindings in WORKSPACE and MODULE files, but will not be flipped true-by-default for the foreseeable future. PiperOrigin-RevId: 631870945 Change-Id: I93f1eda65c2d8f6af34f7e43bc15dca0e6a0d616
- Loading branch information
1 parent
39115b9
commit 698626f
Showing
7 changed files
with
140 additions
and
5 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
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
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
698626f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@c-parsons Could you share more details about the motivation for this change? If this is intended to ever be flippable, we should communicate this now - as it applies to all modules in the dependency graph, cleaning up the entire BCR could otherwise become infeasible over time.
698626f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This greatly reduces complexity/optimization for a separate Google-internal dependency, so we plan on flipping this restriction on internally to Google. We have no current intention of flipping this default-on for Bazel.
FWIW if other organizations want to use this flag to impose similar restrictions on their WORKSPACE file (for either simplification purposes, or for similar internal dependencies) they may do so, but we don't plan on universally enforcing this restriction.