This is an automated email from the ASF dual-hosted git repository.

akitouni pushed a commit to branch abderrahim/action-cache-update
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 5fe8783a005e8bbcb3f4a78935a52de006c6164b
Author: Abderrahim Kitouni <[email protected]>
AuthorDate: Fri Aug 22 08:04:13 2025 +0100

    Fix check to enable action cache updates
    
    The check was previously ignored if the user didn't have remote
    execution / action cache configured.
---
 src/buildstream/sandbox/_sandboxbuildboxrun.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/buildstream/sandbox/_sandboxbuildboxrun.py 
b/src/buildstream/sandbox/_sandboxbuildboxrun.py
index e188c1ac1..c87642f6b 100644
--- a/src/buildstream/sandbox/_sandboxbuildboxrun.py
+++ b/src/buildstream/sandbox/_sandboxbuildboxrun.py
@@ -132,8 +132,8 @@ class SandboxBuildBoxRun(SandboxREAPI):
 
             if self.re_remote:
                 
buildbox_command.append("--instance={}".format(self.re_remote.local_cas_instance_name))
-                if config.remote_apis_socket_action_cache_enable_update:
-                    buildbox_command.append("--nested-ac-enable-update")
+            if config.remote_apis_socket_action_cache_enable_update:
+                buildbox_command.append("--nested-ac-enable-update")
 
             # Do not redirect stdout/stderr
             if "no-logs-capture" in self._capabilities:

Reply via email to