aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java
diff options
context:
space:
mode:
authorGravatar gregce <gregce@google.com>2018-05-25 12:18:27 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-25 12:19:51 -0700
commit475d91a2b9314e6803aba5da83156712af63f837 (patch)
treef7550719165ab75428f73bf420f6ade67510373e /src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java
parent2897a1dbbc83f1b81f16d2de25b299e459c3a90f (diff)
Remove attribute read checks expecting a DATA transition.
This is a precursor to removing the DATA transition outright. While we could also have changed the Mode.DATA instances to Mode.TARGET (which would declare that we expect the attribute not to apply any transition), that would break existing definitions and make depot cleanup more delicate. Plus, these checks weren't being consistently applied across attributes anyway so they don't really offer much. A lot of this logic is really just leftover legacy from the pre-dynamic configuration days. PiperOrigin-RevId: 198085059
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java b/src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java
index 2a332d64d5..d14029bde4 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/Runfiles.java
@@ -1002,7 +1002,8 @@ public final class Runfiles implements RunfilesApi {
* Collects runfiles from data dependencies of a target.
*/
public Builder addDataDeps(RuleContext ruleContext) {
- addTargets(getPrerequisites(ruleContext, "data", Mode.DATA), RunfilesProvider.DATA_RUNFILES);
+ addTargets(getPrerequisites(ruleContext, "data", Mode.DONT_CHECK),
+ RunfilesProvider.DATA_RUNFILES);
return this;
}