You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ju...@apache.org on 2025/09/05 08:42:14 UTC
(buildstream) 08/15: element.py: Don't call `configure_sandbox()` for non-build sandboxes
This is an automated email from the ASF dual-hosted git repository.
juergbi pushed a commit to branch jbilleter/recc
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):