[bazel] Set cache for build, not common (#117163)
These settings are not valid outside build, and cause commands like shutdown to fail. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
parent
47e8f783dc
commit
6dbb314f76
|
@ -13,10 +13,10 @@ test --experimental_guard_against_concurrent_changes
|
||||||
query --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)
|
## 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
|
||||||
|
|
||||||
## Bazel repo cache settings
|
## Bazel repo cache settings
|
||||||
common --repository_cache=~/.bazel-cache/repository-cache
|
build --repository_cache=~/.bazel-cache/repository-cache
|
||||||
|
|
||||||
# Bazel will create symlinks from the workspace directory to output artifacts.
|
# Bazel will create symlinks from the workspace directory to output artifacts.
|
||||||
# Build results will be placed in a directory called "bazel-bin"
|
# Build results will be placed in a directory called "bazel-bin"
|
||||||
|
|
Loading…
Reference in a new issue