aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.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/rules/python/PyCommon.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/rules/python/PyCommon.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java b/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java
index ede9e0f6ee..f0c8615dbf 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/python/PyCommon.java
@@ -480,7 +480,7 @@ public final class PyCommon {
try {
return checkForSharedLibraries(Iterables.concat(
ruleContext.getPrerequisites("deps", Mode.TARGET),
- ruleContext.getPrerequisites("data", Mode.DATA)));
+ ruleContext.getPrerequisites("data", Mode.DONT_CHECK)));
} catch (EvalException e) {
ruleContext.ruleError(e.getMessage());
return false;