aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/docgen
diff options
context:
space:
mode:
authorGravatar Laurent Le Brun <laurentlb@google.com>2017-02-13 21:18:34 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2017-02-14 14:21:24 +0000
commitb6d1123f2320bc60d1e620f00cade48d980d39ee (patch)
tree17ab1142d2c7bd0df039dea2a0802d319b7e4bca /src/main/java/com/google/devtools/build/docgen
parentc8a127c3a5c491ec2f81c178ddc6118c041d67cc (diff)
Clarify that load() statements do not respect visibility.
-- PiperOrigin-RevId: 147384211 MOS_MIGRATED_REVID=147384211
Diffstat (limited to 'src/main/java/com/google/devtools/build/docgen')
-rw-r--r--src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm b/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm
index 05ab87ae04..494524a7e4 100644
--- a/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm
+++ b/src/main/java/com/google/devtools/build/docgen/templates/be/functions.vm
@@ -62,7 +62,9 @@ load(":build_defs.bzl", "COMPILER_FLAGS", "LINKER_FLAGS")
file is sufficient) The name of the file must have the suffix
<code>.bzl</code>. If the specified label is in the relative label syntax
(<code>:a/b.bzl</code>), it will be resolved relative to the package of the
- file the <code>load</code> statement is in.
+ file the <code>load</code> statement is in. <code>load</code> statements
+ don't respect visibility: there is no need to use <code>exports_files</code>
+ to make the <code>.bzl</code> file visible.
</p>
<p>