aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitor.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitor.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitor.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitor.java b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitor.java
index a1c1968c35..e657a1bf8e 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitor.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/SkyframeLabelVisitor.java
@@ -121,7 +121,7 @@ final class SkyframeLabelVisitor implements TransitivePackageLoader {
}
warnAboutLoadingFailure(topLevelLabel, eventHandler);
for (SkyKey badKey : errorInfo.getRootCauses()) {
- if (badKey.functionName() == SkyFunctions.PACKAGE) {
+ if (badKey.functionName().equals(SkyFunctions.PACKAGE)) {
// Transitive target function may ask for a Package, but don't include this in the root
// causes. We'll get more precise information from dependencies on transitive and direct
// target dependencies.