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}` }