Skip to content

Commit fca3645

Browse files
committed
_context: use artifact caches from the parent project for junctions
This makes a junction use the artifact cache of the parent project before the ones defined for the junction This was originally done in 24c0de1, but regressed at some point Fixes #1839
1 parent 8a397eb commit fca3645

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/buildstream/_context.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,13 @@ def _resolve_specs_for_project(
767767

768768
# If there are any project recommendations, append them at the end
769769
project_remotes = getattr(project, project_attribute)
770+
771+
junction = project.junction
772+
while junction:
773+
parent_project = junction._get_project()
774+
project_remotes = getattr(parent_project, project_attribute) + project_remotes
775+
junction = parent_project.junction
776+
770777
remotes = list(utils._deduplicate(remotes + project_remotes))
771778

772779
return remotes

0 commit comments

Comments
 (0)