mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 17:11:49 +00:00
build: don't bust Bazel analysis cache when switching between build & test (#48694)
`test` inherits from `build` in bazelrc so it is sufficient to specify `build` to get the flag set for both `bazel build` and `bazel test`
This commit is contained in:
parent
adc006d905
commit
76b67833cb
4
.bazelrc
4
.bazelrc
@ -15,5 +15,5 @@ import %workspace%/.aspect/bazelrc/performance.bazelrc
|
||||
# this file. See https://bazel.build/configure/best-practices#bazelrc-file.
|
||||
try-import %workspace%/.aspect/bazelrc/user.bazelrc
|
||||
|
||||
# Enable bazel hack for autogold
|
||||
test --test_env=ENABLE_BAZEL_PACKAGES_LOAD_HACK=true
|
||||
# Enable bazel hack for autogold; apply to both build & test to avoid busting analysis cache
|
||||
build --test_env=ENABLE_BAZEL_PACKAGES_LOAD_HACK=true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user