From ef7fe3deeab7bc85e7b8c83e12a6cdc6c877bf84 Mon Sep 17 00:00:00 2001 From: Vladimir Chebotarev Date: Wed, 24 Apr 2019 08:23:19 +0300 Subject: [PATCH] test3 --- .../com/google/devtools/build/lib/remote/RemoteSpawnCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java b/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java index 2da0cc1203d446..6f99064a21a760 100644 --- a/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java +++ b/src/main/java/com/google/devtools/build/lib/remote/RemoteSpawnCache.java @@ -142,7 +142,7 @@ public CacheHandle lookup(Spawn spawn, SpawnExecutionContext context) try (SilentCloseable c = Profiler.instance().profile("RemoteCache.getCachedActionResult")) { result = remoteCache.getCachedActionResult(actionKey); } - if (result != null) { + if (result != null && (result.getOutputFilesCount() + result.getOutputDirectoriesCount() > 0)) { // We don't cache failed actions, so we know the outputs exist. // For now, download all outputs locally; in the future, we can reuse the digests to // just update the TreeNodeRepository and continue the build.