Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 15c97ba

Browse files
when a multiple step generates artifacts of tge same ArtifactType, we should use the latest generated artifact.
1 parent 8e6870f commit 15c97ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mpyl/steps/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def _find_required_artifact(
112112
if not required_artifact or required_artifact == ArtifactType.NONE:
113113
return None
114114

115-
for stage in stages:
115+
for stage in reversed(stages):
116116
output: Optional[Output] = Output.try_read(project.target_path, stage.name)
117117
if (
118118
output

0 commit comments

Comments
 (0)