From c2d7fe50dded332ee412347fb5c4806be64fdd67 Mon Sep 17 00:00:00 2001 From: Tiago Costa Date: Wed, 10 Nov 2021 00:19:01 +0000 Subject: [PATCH] [7.16] chore(NA): moves disk_cache and repository_cache bazel flags from common to specific commands (#118037) (#118080) * chore(NA): moves disk_cache and repository_cache bazel flags from common to specific commands (#118037) # Conflicts: # .bazelrc.common * commit using @elastic.co --- .bazelrc.common | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.bazelrc.common b/.bazelrc.common index c401a9050798..e210b06ed270 100644 --- a/.bazelrc.common +++ b/.bazelrc.common @@ -13,10 +13,19 @@ test --experimental_guard_against_concurrent_changes query --experimental_guard_against_concurrent_changes ## Cache action outputs on disk so they persist across output_base and bazel shutdown (eg. changing branches) -common --disk_cache=~/.bazel-cache/disk-cache +build --disk_cache=~/.bazel-cache/disk-cache +fetch --disk_cache=~/.bazel-cache/disk-cache +query --disk_cache=~/.bazel-cache/disk-cache +sync --disk_cache=~/.bazel-cache/disk-cache +test --disk_cache=~/.bazel-cache/disk-cache ## Bazel repo cache settings -common --repository_cache=~/.bazel-cache/repository-cache +build --repository_cache=~/.bazel-cache/repository-cache +fetch --repository_cache=~/.bazel-cache/repository-cache +query --repository_cache=~/.bazel-cache/repository-cache +run --repository_cache=~/.bazel-cache/repository-cache +sync --repository_cache=~/.bazel-cache/repository-cache +test --repository_cache=~/.bazel-cache/repository-cache # Bazel will create symlinks from the workspace directory to output artifacts. # Build results will be placed in a directory called "bazel-bin"