summaryrefslogtreecommitdiff
path: root/src/buildstream/_stream.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_stream.py')
-rw-r--r--src/buildstream/_stream.py24
1 files changed, 6 insertions, 18 deletions
diff --git a/src/buildstream/_stream.py b/src/buildstream/_stream.py
index 8097f451d..c5e056280 100644
--- a/src/buildstream/_stream.py
+++ b/src/buildstream/_stream.py
@@ -121,7 +121,6 @@ class Stream():
target_objects, _ = self._load(targets, (),
selection=selection,
except_targets=except_targets,
- fetch_subprojects=False,
use_artifact_config=use_artifact_config,
load_refs=load_refs)
@@ -242,7 +241,6 @@ class Stream():
use_artifact_config=use_config,
artifact_remote_url=remote,
use_source_config=True,
- fetch_subprojects=True,
dynamic_plan=True)
# Remove the tracking elements from the main targets
@@ -323,7 +321,6 @@ class Stream():
except_targets=except_targets,
track_except_targets=track_except_targets,
track_cross_junctions=track_cross_junctions,
- fetch_subprojects=True,
use_source_config=use_source_config,
source_remote_url=remote)
@@ -356,8 +353,7 @@ class Stream():
selection=selection, track_selection=selection,
except_targets=except_targets,
track_except_targets=except_targets,
- track_cross_junctions=cross_junctions,
- fetch_subprojects=True)
+ track_cross_junctions=cross_junctions)
track_queue = TrackQueue(self._scheduler)
self._add_queue(track_queue, track=True)
@@ -390,8 +386,7 @@ class Stream():
selection=selection,
ignore_junction_targets=ignore_junction_targets,
use_artifact_config=use_config,
- artifact_remote_url=remote,
- fetch_subprojects=True)
+ artifact_remote_url=remote)
if not self._artifacts.has_fetch_remotes():
raise StreamError("No artifact caches available for pulling artifacts")
@@ -431,8 +426,7 @@ class Stream():
selection=selection,
ignore_junction_targets=ignore_junction_targets,
use_artifact_config=use_config,
- artifact_remote_url=remote,
- fetch_subprojects=True)
+ artifact_remote_url=remote)
if not self._artifacts.has_push_remotes():
raise StreamError("No artifact caches available for pushing artifacts")
@@ -496,9 +490,7 @@ class Stream():
# if pulling we need to ensure dependency artifacts are also pulled
selection = PipelineSelection.RUN if pull else PipelineSelection.NONE
- elements, _ = self._load(
- (target,), (), selection=selection,
- fetch_subprojects=True, use_artifact_config=True)
+ elements, _ = self._load((target,), (), selection=selection, use_artifact_config=True)
target = elements[-1]
@@ -644,8 +636,7 @@ class Stream():
elements, _ = self._load((target,), (),
selection=deps,
- except_targets=except_targets,
- fetch_subprojects=True)
+ except_targets=except_targets)
# Assert all sources are cached in the source dir
if fetch:
@@ -1039,7 +1030,6 @@ class Stream():
# use_source_config (bool): Whether to initialize remote source caches with the config
# artifact_remote_url (str): A remote url for initializing the artifacts
# source_remote_url (str): A remote url for initializing source caches
- # fetch_subprojects (bool): Whether to fetch subprojects while loading
#
# Returns:
# (list of Element): The primary element selection
@@ -1056,7 +1046,6 @@ class Stream():
use_source_config=False,
artifact_remote_url=None,
source_remote_url=None,
- fetch_subprojects=False,
dynamic_plan=False,
load_refs=False):
@@ -1075,8 +1064,7 @@ class Stream():
# Load all target elements
elements, except_elements, track_elements, track_except_elements = \
self._pipeline.load([target_elements, except_targets, track_targets, track_except_targets],
- rewritable=rewritable,
- fetch_subprojects=fetch_subprojects)
+ rewritable=rewritable)
# Obtain the ArtifactElement objects
artifacts = [self._project.create_artifact_element(ref) for ref in target_artifacts]