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

juergbi pushed a commit to branch jbilleter/loader
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 202dc9d606262d991fdc1580102da48057a32f99
Author: Jürg Billeter <[email protected]>
AuthorDate: Sat Apr 25 10:35:29 2026 +0200

    _loader: Drop redundant `ensure_fully_loaded()` for CLI targets
    
    Different behavior for `provenance_node is None` is not ideal. And since
    commit 07a1e45183 ("Ensure that the parent project is fully loaded..."),
    it's no longer needed.
---
 src/buildstream/_loader/loader.py | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/buildstream/_loader/loader.py 
b/src/buildstream/_loader/loader.py
index 25548dd81..c1777f39b 100644
--- a/src/buildstream/_loader/loader.py
+++ b/src/buildstream/_loader/loader.py
@@ -190,14 +190,6 @@ class Loader:
         junction_path = name.split(":")
         loader = self
 
-        #
-        # In this case we are attempting to load a subproject element via the
-        # command line instead of referencing the subproject through a project
-        # element or otherwise.
-        #
-        if provenance_node is None and load_subprojects:
-            self.project.ensure_fully_loaded()
-
         circular_provenance_node = self._loader_search_provenances.get(name, 
None)
         if circular_provenance_node and load_subprojects:
 

Reply via email to