Merge pull request #161 from cgrindel/gh0055_missing_target_under_license
fix: ensure `gather_metadata_info_common()` returns providers with `target_under_license` set
diff --git a/rules/license.bzl b/rules/license.bzl
index a5c0379..16d38ad 100644
--- a/rules/license.bzl
+++ b/rules/license.bzl
@@ -42,7 +42,12 @@
" should be listed here. If the user can choose a single one" +
" of many, then only list one here.",
providers = [LicenseKindInfo],
- # This should be the null configuration, not the exec.
+ # Bazel 8+ users: In Bazel 8, the targets for package_metadata are
+ # always in a null configuration. This reflects the fact that they
+ # are non-configurable and keeps the node for a license in a single
+ # configuration, no matter what physical platforms you are building
+ # for.
+ # TODO: (after bazel 8.0 is mainstream): Remove this line.
cfg = "exec",
),
"copyright_notice": attr.string(