diff options
author | brandjon <brandjon@google.com> | 2018-04-17 09:12:17 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-04-17 09:13:30 -0700 |
commit | 185535abc424a091a923dff62fa96e56c92d3635 (patch) | |
tree | 39f555669462e6511c153595b86a84fbcda1e261 /site/docs/skylark | |
parent | 57d6c33d691a2021bde812f9a8780283799558f6 (diff) |
Clarify 1st arg of load()
RELNOTES: None
PiperOrigin-RevId: 193206695
Diffstat (limited to 'site/docs/skylark')
-rw-r--r-- | site/docs/skylark/concepts.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/site/docs/skylark/concepts.md b/site/docs/skylark/concepts.md index 238cb355fc..4a9c345a7e 100644 --- a/site/docs/skylark/concepts.md +++ b/site/docs/skylark/concepts.md @@ -23,6 +23,11 @@ imported by using additional arguments to the call to `load`. Arguments must be string literals (no variable) and `load` statements must appear at top-level, i.e. they cannot be in a function body. +The first argument of `load` is a [label](https://docs.bazel.build/versions/master/build-ref.html#labels) +identifying a `.bzl` file. If it is a relative label, it is resolved with +respect to the package (not directory) containing the current `.bzl` file. +Relative labels in `load` statements should use a leading `:`. + `load` also supports aliases, i.e. you can assign different names to the imported symbols. |