From 4360dd8cc1050c18a948119996d03416e47e3e77 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Tue, 29 Sep 2026 19:42:20 +0200 Subject: [PATCH] Make //docs:sphinx_build_test work on RBE The sphinx test was copying a source file and attempting to modify that. However, in an RBE environment, source files are read-only, so the copy was also read-only. Fixed that by explicitly making it writable. Signed-off-by: Henner Zeller --- docs/sphinx_build_test.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/sphinx_build_test.py b/docs/sphinx_build_test.py index 9cde96f674f..4e35583ba03 100644 --- a/docs/sphinx_build_test.py +++ b/docs/sphinx_build_test.py @@ -38,7 +38,8 @@ def main() -> int: readme_src = os.path.join(os.path.dirname(DOCS_DIR), "README.md") if os.path.exists(readme_src): - shutil.copy2(readme_src, os.path.join(temp_root, "README.md")) + readme_dst = os.path.join(temp_root, "README.md") + shutil.copyfile(readme_src, readme_dst) # creates a writable copy # conf.py's setup(app) hook uses cwd-relative paths like "./main" # and "../README.md", so it must run with docs/ as cwd.