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

akitouni pushed a commit to branch abderrahim/build-deps-none
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 4a497d0294d675173eb26b3935fed063d4f86d27
Author: Abderrahim Kitouni <[email protected]>
AuthorDate: Thu Jan 29 18:11:50 2026 +0100

    _stream: Don't require runtime deps when building with --deps none
    
    Before this change, running a build with `--deps none` would also build / 
pull
    runtime dependencies. This commit changes the elements on the command line 
to
    not require their runtime dependencies if we're using `--deps none`
---
 src/buildstream/_stream.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index 5b28002c0..a33f8b440 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -1775,8 +1775,13 @@ class Stream:
         if not required_elements:
             required_elements = selected
 
+        if selection == _PipelineSelection.NONE:
+            scope = _Scope.NONE
+        else:
+            scope = _Scope.RUN
+
         for element in required_elements:
-            element._set_required()
+            element._set_required(scope)
 
         return selected
 

Reply via email to