-
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.
Rewrite some visibility documentation
This is a precursor to documenting the new changes to visibility -- "public", "private", and --incomaptible_fix_package_group_syntax; and to documenting the new bzl visibility feature. package_group() function doc: - `into text`: Clarify visibility levels. Replace legacy "rule" terminology with more modern "target", and be a little more pedantic about granting access to packages vs targets. - `packages` attr: Be consistent about these being "package specifications", not an enumeration of packages. Say the allowed forms, then the semantics without respect to `includes`. Mention `//...` special case, and repo behavior. - `includes` attr: Move interaction between negation and includes to here. dependencies.md: - Better hint that granting access to a package group can never remove access from the package to itself ("may grant broader visibility"). - Describe visibility as a "dual" of dependency rather than "opposite". - Paragraph break. visibility.md: - Again be pedantic about access for package vs target, while factoring out "targets defined in" verbiage. - Again be pedantic about not suggesting you can remove access from a package to itself. - Factor out mention of how the syntax is weird. - Expand wording for load() visibility a little. codebase.md: - Drive by rewrite of part of Skyframe section. - Drive-by fixes for Starlark section. - Streamline wording of visibility section. - Add more mention of package_group implementation classes. Maybe a little more verbose than needed, but I figured it was better to include them than not. Work toward #11261. PiperOrigin-RevId: 478572996 Change-Id: I1edc9bc80337976cc5dc21cf48a1d7e00924c63f
- Loading branch information
1 parent
93e091f
commit 0d5eb3c
Showing
4 changed files
with
171 additions
and
138 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
Oops, something went wrong.