Skip to content

Commit 63f5e50

Browse files
authored
Correctly propagate requirements/hints on Workflow step. (#192)
1 parent 876c0fc commit 63f5e50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cwltool/workflow.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ def __init__(self, toolpath_object, pos, **kwargs):
430430
else:
431431
self.id = "#step" + Text(pos)
432432

433+
kwargs["requirements"] = kwargs.get("requirements", []) + toolpath_object.get("requirements", [])
434+
kwargs["hints"] = kwargs.get("hints", []) + toolpath_object.get("hints", [])
435+
433436
try:
434437
if isinstance(toolpath_object["run"], dict):
435438
self.embedded_tool = kwargs.get("makeTool")(toolpath_object["run"], **kwargs)
@@ -529,9 +532,6 @@ def job(self, joborder, output_callback, **kwargs):
529532
joborder[field] = joborder[i["id"]]
530533
del joborder[i["id"]]
531534

532-
kwargs["requirements"] = kwargs.get("requirements", []) + self.tool.get("requirements", [])
533-
kwargs["hints"] = kwargs.get("hints", []) + self.tool.get("hints", [])
534-
535535
try:
536536
for t in self.embedded_tool.job(joborder,
537537
functools.partial(self.receive_output, output_callback),

0 commit comments

Comments
 (0)