diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java index f465201da373fb..ef8d0fac3f4f1f 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java @@ -524,7 +524,7 @@ private ActionExecutionValue checkCacheAndExecuteIfNeeded( if (env.valuesMissing()) { return null; } - if (!Iterables.isEmpty(newInputs)) { + if (!metadataFoundDuringActionExecution.isEmpty()) { // We are in the interesting case of an action that discovered its inputs during // execution, and found some new ones, but the new ones were already present in the graph. // We must therefore cache the metadata for those new ones.