This is an automated email from the ASF dual-hosted git repository. akitouni pushed a commit to branch abderrahim/digest-environment in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 46b1cc3d8cd13662c08cc5c8fb7eb4b873238ec2 Author: Jürg Billeter <j...@bitron.ch> AuthorDate: Fri Aug 29 17:33:34 2025 +0200 element.py: Don't call `configure_sandbox()` for non-build sandboxes `configure_sandbox()` may attempt to construct subsandboxes with build dependencies. Runtime shell and `bst artifact checkout` sandboxes are not build sandboxes. --- src/buildstream/element.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/buildstream/element.py b/src/buildstream/element.py index 403c96ded..fa79c2b44 100644 --- a/src/buildstream/element.py +++ b/src/buildstream/element.py @@ -1453,7 +1453,11 @@ class Element(Plugin): # Stage what we need self.__stage(sandbox) else: - self.__configure_sandbox(sandbox) + # Runtime shell or `bst artifact checkout` + + # Don't call `configure_sandbox()` as that may attempt to construct subsandboxes + # with build dependencies and we're not setting up a build sandbox. + sandbox.set_environment(self.get_environment()) # Stage deps in the sandbox root with self.timed_activity("Staging dependencies", silent_nested=True), self.__collect_overlaps(sandbox):