From eea783d23533b8abe9f724d04f842e3d39f2281f Mon Sep 17 00:00:00 2001 From: Leonid Shalupov Date: Thu, 21 Aug 2025 21:42:35 +0200 Subject: [PATCH] bazel: move disk cache settings to common.bazelrc share disk cache between building of community/ultimate projects GitOrigin-RevId: 740bc4a2fe48ff1e10ef81b04b608c5d16878361 --- common.bazelrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.bazelrc b/common.bazelrc index a959f01a1203..f7907b8e2223 100644 --- a/common.bazelrc +++ b/common.bazelrc @@ -6,6 +6,12 @@ ### --- ### +# Disk cache +common --experimental_disk_cache_gc_max_size=32G --experimental_disk_cache_gc_max_age=28d +common:macos --disk_cache=~/Library/Caches/JetBrains/monorepo-bazel-cache +common:linux --disk_cache=~/.cache/JetBrains/monorepo-bazel-cache +common:windows --disk_cache=~/AppData/Local/Temp/JetBrains/monorepo-bazel-cache + ### NOTE on --experimental_sibling_repository_layout ### The option was removed due to https://github.com/bazelbuild/bazel/issues/26361 ### One experimental option less and also it looks like it won't enabled by default in the future