summaryrefslogtreecommitdiff
path: root/src/buildstream/_project.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_project.py')
-rw-r--r--src/buildstream/_project.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/buildstream/_project.py b/src/buildstream/_project.py
index 8d06c7cef..3a5923f80 100644
--- a/src/buildstream/_project.py
+++ b/src/buildstream/_project.py
@@ -645,6 +645,12 @@ class Project():
# Load artifacts pull/push configuration for this project
self.artifact_cache_specs = ArtifactCache.specs_from_config_node(config, self.directory)
+ # If there is a junction Element which specifies that we want to remotely cache
+ # its elements, append the junction's remotes to the artifact cache specs list
+ if self.junction and self.junction.cache_junction_elements:
+ parent = self.junction._get_project()
+ self.artifact_cache_specs = parent.artifact_cache_specs + self.artifact_cache_specs
+
# Load source caches with pull/push config
self.source_cache_specs = SourceCache.specs_from_config_node(config, self.directory)