cwltool icon indicating copy to clipboard operation
cwltool copied to clipboard

Behavior of `cwltool --pack` is inconsistent when tool has an ID

Open jdidion opened this issue 2 years ago • 1 comments

The typical behavior of cwltool --pack is to set the ID of the main tool/workflow to #main and then prefix all it's input and output IDs with #main/. However, when the tool defines id then the input and output IDs don't get the prefix even though the name of the tool is changed to #main. When I remove the tool id the generated file is as expected. This can be reproduced by trying to pack https://github.com/common-workflow-language/cwl-v1.2/blob/main/tests/stage_file_array.cwl with and without the tool id field.

jdidion avatar Sep 07 '21 20:09 jdidion

Confirmed. Same as #1470 ; related to #1436

mr-c avatar Sep 08 '21 06:09 mr-c