From 4a0202dda874b3c50fb3db6abbabd934447caad3 Mon Sep 17 00:00:00 2001 From: Jon Meow <46229924+jonmeow@users.noreply.github.com> Date: Tue, 8 Jun 2021 10:53:02 -0700 Subject: [PATCH] Fix test_env to use build, fixing analysis caching (#568) Per https://docs.bazel.build/versions/master/guide.html#option-defaults, test inherits from build, thus why this fixes caching. The issue can be observed with `bazel build :all && bazel test :all`, the line: `INFO: Build option --test_env has changed, discarding analysis cache.` --- .bazelrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index f06dcee5ef8fd..d8130669d9fbd 100644 --- a/.bazelrc +++ b/.bazelrc @@ -33,7 +33,7 @@ build:fuzzer --features=fuzzer # Always allow tests to symbolize themselves with whatever `llvm-symbolize` is # in the users environment. -test --test_env=ASAN_SYMBOLIZER_PATH +build --test_env=ASAN_SYMBOLIZER_PATH # Force actions to have a UTF-8 language encoding. # TODO: Need to investigate what this should be on Windows, but at least for