aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Aiuto <aiuto@google.com>2023-03-21 16:56:17 -0400
committerTony Aiuto <aiuto@google.com>2023-03-21 16:56:17 -0400
commit9e310623d6d539c14a81f026eae3b360e435e5dc (patch)
treea1bd8d08e8df66d0eeeaca354ab21ccb8d4c4ead
parente6d8fbab69597623e499350d548f069ace2b6c29 (diff)
downloadbazelbuild-rules_license-9e310623d6d539c14a81f026eae3b360e435e5dc.tar.gz
add an interesting comment
-rw-r--r--rules/license.bzl4
1 files changed, 4 insertions, 0 deletions
diff --git a/rules/license.bzl b/rules/license.bzl
index ea7a586..f1711d8 100644
--- a/rules/license.bzl
+++ b/rules/license.bzl
@@ -26,6 +26,10 @@ load(
_require_license_text_is_a_file = False
+# This rule must be named "_license" for backwards compatability with older
+# or Bazel that checked that name explicitly. See
+# https://github.com/bazelbuild/bazel/commit/bbc221f60bc8c9177470529d85c3e47a5d9aaf21
+# TODO(after bazel 7.0 release): Feel free to rename the rule and move.
_license = rule(
implementation = license_rule_impl,
attrs = {