Skip to content

Commit adcb024

Browse files
committed
Disable persistent workers in sphinx_docs
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 4f39de2 commit adcb024

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
@@ -291,6 +291,9 @@ def docs(source_dir = "docs", data = [], deps = [], scan_code = []):
291291
sphinx = ":sphinx_build",
292292
tools = data,
293293
visibility = ["//visibility:public"],
294+
# Persistent workers cause stale symlinks after dependency version
295+
# changes, corrupting the Bazel cache.
296+
allow_persistent_workers = False,
294297
)
295298

296299
sphinx_module(

0 commit comments

Comments
 (0)