Skip to content

Commit

Permalink
Fix mention of lack of load visibility
Browse files Browse the repository at this point in the history
Work toward bazelbuild#11261.

PiperOrigin-RevId: 482956105
Change-Id: I04d53352d6368d377258687671dfe770642832a6
  • Loading branch information
brandjon authored and copybara-github committed Oct 22, 2022
1 parent 9f97fc2 commit 3e8514c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions site/en/concepts/build-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,10 @@ load(":my_rules.bzl", "some_rule", nice_alias = "some_other_rule")
```

In a `.bzl` file, symbols starting with `_` are not exported and cannot be
loaded from another file. Visibility doesn't affect loading (yet): you don't
need to use `exports_files` to make a `.bzl` file visible.
loaded from another file.

You can use [load visibility](/concepts/visibility#load-visibility) to restrict
who may load a `.bzl` file.

## Types of build rules {:#types-of-build-rules}

Expand Down

0 comments on commit 3e8514c

Please sign in to comment.