aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools
diff options
context:
space:
mode:
authorGravatar cpovirk <cpovirk@google.com>2017-07-20 13:57:02 +0200
committerGravatar Klaus Aehlig <aehlig@google.com>2017-07-20 14:48:56 +0200
commitd81b16c0d349deb5b194e321488ff7b1b8674a62 (patch)
tree76ae5ee4793e1fabf5b65adb8873d0b07fb7a632 /src/main/java/com/google/devtools
parent36cd45b90b493287715922caaf2dd4ffa4b0a7ad (diff)
Turn off checking for filegroup "data" attributes.
Evidently the blanket disabling for all "data" attributes doesn't apply there. PiperOrigin-RevId: 162602015
Diffstat (limited to 'src/main/java/com/google/devtools')
-rw-r--r--src/main/java/com/google/devtools/build/lib/bazel/rules/common/BazelFilegroupRule.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/common/BazelFilegroupRule.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/common/BazelFilegroupRule.java
index d2c1588a59..e301b0f186 100644
--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/common/BazelFilegroupRule.java
+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/common/BazelFilegroupRule.java
@@ -67,7 +67,11 @@ public final class BazelFilegroupRule implements RuleDefinition {
<code>data</code></a> for more information about how to depend on and use data files.
</p>
<!-- #END_BLAZE_RULE.ATTRIBUTE -->*/
- .add(attr("data", LABEL_LIST).cfg(DATA).allowedFileTypes(FileTypeSet.ANY_FILE))
+ .add(
+ attr("data", LABEL_LIST)
+ .cfg(DATA)
+ .allowedFileTypes(FileTypeSet.ANY_FILE)
+ .dontCheckConstraints())
.add(attr("output_licenses", LICENSE))
/*<!-- #BLAZE_RULE(filegroup).ATTRIBUTE(path) -->
An optional string to set a path to the files in the group, relative to the package path.