Skip to content

Commit 6b16352

Browse files
jmillikin-stripeCopybara-Service
authored and
Copybara-Service
committed
Allow disabling the simple blob caches via CLI flag overrides.
This fixes a regression from v0.13. When the local disk cache flags were unified into `--disk_cache`, it became impossible to override a default cache location such that the cache became disabled. This prevents canarying of remote execution in the presence of a default bazelrc that enables the disk cache. Fixes bazelbuild#5308 Closes bazelbuild#5338. PiperOrigin-RevId: 199613922
1 parent 708b957 commit 6b16352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/google/devtools/build/lib/remote/SimpleBlobStoreFactory.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static boolean isRemoteCacheOptions(RemoteOptions options) {
7575
}
7676

7777
public static boolean isDiskCache(RemoteOptions options) {
78-
return options.diskCache != null;
78+
return options.diskCache != null && !options.diskCache.isEmpty();
7979
}
8080

8181
static boolean isRestUrlOptions(RemoteOptions options) {

0 commit comments

Comments
 (0)