aboutsummaryrefslogtreecommitdiffhomepage
path: root/site
diff options
context:
space:
mode:
authorGravatar laurentlb <laurentlb@google.com>2017-06-14 15:32:41 +0200
committerGravatar Yun Peng <pcloudy@google.com>2017-06-14 16:21:03 +0200
commitba69b39468954ed382dc50bc3fc22a1446c5f9d8 (patch)
treef4fcd89bc689644af3ef7e6d644324471861bb71 /site
parent66c7f75a9abb254b3d204468a8cf58ccfd4d8669 (diff)
Introduce --incompatible_load_argument_is_label (1st argument of load must be a label).
RELNOTES: First argument of 'load' should be a label. Path syntax is deprecated (label should start with '//' or ':'). PiperOrigin-RevId: 158971314
Diffstat (limited to 'site')
-rw-r--r--site/docs/skylark/concepts.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/site/docs/skylark/concepts.md b/site/docs/skylark/concepts.md
index dcaebc9012..e078810315 100644
--- a/site/docs/skylark/concepts.md
+++ b/site/docs/skylark/concepts.md
@@ -173,6 +173,20 @@ with Python. A possible workaround is to use the `.update` method instead.
* Flag: `--incompatible_disallow_dict_plus`
* Default: `false`
+### Load argument is a label
+
+Historically, the first argument of `load` could be a path with an implicit
+`.bzl` suffix. We are going to require that all `load` statements use the label
+syntax.
+
+``` python
+load("/path/foo", "var") # deprecated
+load("//path:foo.bzl", "var") # recommended
+```
+
+* Flag: `--incompatible_load_argument_is_label`
+* Default: `false`
+
### Top level `if` statements
This change forbids `if` statements at the top level of `.bzl` files (they are