From b26a6f0e11cc6c3377da32844f0eb7d6f71232b6 Mon Sep 17 00:00:00 2001 From: Xavier Bonaventura Date: Sat, 10 Jan 2026 21:27:24 +0100 Subject: [PATCH] Fix bazel version not working with disk cache (#119) --- config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config.js b/config.js index 3a51500..d6aec2e 100644 --- a/config.js +++ b/config.js @@ -52,7 +52,10 @@ const diskCacheConfig = core.getInput('disk-cache') const diskCacheEnabled = diskCacheConfig !== 'false' let diskCacheName = 'disk' if (diskCacheEnabled) { - bazelrc.push(`common --disk_cache=${bazelDisk}`) + // Before Bazel 6.3, providing --disk_cache to common is an error, + // with Bazel 6.3 and onwards, common accepts any legal Bazel option + // https://github.com/bazelbuild/bazel/issues/3054 + bazelrc.push(`build --disk_cache=${bazelDisk}`) if (diskCacheName !== 'true') { diskCacheName = `${diskCacheName}-${diskCacheConfig}` }