Skip to content

Commit af68f57

Browse files
devversionmmalerba
authored andcommitted
build: avoid bazel analysis cache discarding (#17461)
It looks like Bazel sometimes discards the analysis cache when switching between testing/running and plain building. This is because b3a0037 introduced a flag for disabling legacy bazel behavior. This flag has been only applied to "run" and "test", but not for "build". This means that we accidentally switch the environment, and Bazel discards the analysis cache (slowing down the development).
1 parent 271ab77 commit af68f57

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.bazelrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ build --symlink_prefix=/
1313
build --watchfs
1414

1515
# Turn off legacy external runfiles
16+
build --nolegacy_external_runfiles
1617
run --nolegacy_external_runfiles
1718
test --nolegacy_external_runfiles
1819

0 commit comments

Comments
 (0)