Skip to content

Commit 3ff1be1

Browse files
committed
Fix Docker build and prevent unnecessary rebuilds
Due to a Bazel issue (bazelbuild/bazel#17158), the recent introduction of `universal_binary` ended up forking the configuration for dependencies of the Jazzer launcher. As a result, some Java targets were built twice and the Docker images failed to build as the Jazzer standalone jar was no longer a dependency of the launcher in the default configuration. As a workaround and also because it prevents similar issues on a more fundamental level, switch to the soon to be default improved config hash algorithm.
1 parent 9299abf commit 3ff1be1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ build -c opt
1010
# https://github.com/bazelbuild/bazel/pull/16973 has been merged.
1111
build:linux --nozip_undeclared_test_outputs
1212
build:macos --nozip_undeclared_test_outputs
13+
# Improve caching for builds involving multiple configurations and work around
14+
# the Bazel issue fixed by https://github.com/bazelbuild/bazel/pull/17158.
15+
build --experimental_output_directory_naming_scheme=diff_against_baseline
1316

1417
# C/C++
1518
# GCC is supported on a best-effort basis.

0 commit comments

Comments
 (0)