From edb2d65d0ce54d35afb93d07eb344858f6393ebe Mon Sep 17 00:00:00 2001 From: sofiane Date: Fri, 20 Dec 2024 21:14:00 +0100 Subject: [PATCH] SERVER-98727 Add write permission to file about to be deleted, Permission errors --- site_scons/site_tools/integrate_bazel.py | 1 + 1 file changed, 1 insertion(+) diff --git a/site_scons/site_tools/integrate_bazel.py b/site_scons/site_tools/integrate_bazel.py index 5236d731cb4e5..87d103647bdc0 100644 --- a/site_scons/site_tools/integrate_bazel.py +++ b/site_scons/site_tools/integrate_bazel.py @@ -604,6 +604,7 @@ def bazel_build_thread_func(env, log_dir: str, verbose: bool, ninja_generate: bo if ninja_generate: for file in glob.glob("bazel-out/**/*.gen_source_list", recursive=True): + os.chmod(file, stat.S_IWRITE) os.remove(file) extra_args += ["--build_tag_filters=scons_link_lists"] bazel_cmd = Globals.bazel_base_build_command + extra_args + ["//src/..."]