Skip to content

Commit 1d195b0

Browse files
authored
Disable persistent workers in sphinx_docs (#453)
Persistent workers cause Bazel cache corruption when external dependency versions change (stale symlinks remain visible to Sphinx). There is a performance cost to disabling this feature.
1 parent 6763560 commit 1d195b0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs.bzl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,9 @@ def docs(source_dir = "docs", data = [], deps = [], scan_code = [], known_good =
294294
sphinx = ":sphinx_build",
295295
tools = data,
296296
visibility = ["//visibility:public"],
297+
# Persistent workers cause stale symlinks after dependency version
298+
# changes, corrupting the Bazel cache.
299+
allow_persistent_workers = False,
297300
)
298301

299302
sphinx_module(

0 commit comments

Comments
 (0)