This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch tristan/light-cache-keys-without-sandbox-run in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 186738cde5011fab2648cdfa42e36d06c10f3bde Author: Tristan van Berkom <[email protected]> AuthorDate: Thu Aug 4 15:40:28 2022 +0900 compose element: setup BST_RUN_COMMANDS Advertise BST_RUN_COMMANDS as False if we're not going to integrate the dependencies. --- src/buildstream/plugins/elements/compose.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/buildstream/plugins/elements/compose.py b/src/buildstream/plugins/elements/compose.py index 90446c89b..3884a4a94 100644 --- a/src/buildstream/plugins/elements/compose.py +++ b/src/buildstream/plugins/elements/compose.py @@ -66,6 +66,10 @@ class ComposeElement(Element): self.exclude = node.get_str_list("exclude") self.include_orphans = node.get_bool("include-orphans") + # Inform the core that we will not need to run any commands in the sandbox + if not self.integration: + self.BST_RUN_COMMANDS = False + def preflight(self): pass
