Closed
Description
Expected Behavior
Running cwl-runner --pack on an already packed (normalized) cwl workflow should create the same file again.
Actual Behavior
Id fields do get an additional path "main":
cwl-runner --pack ./v1.0/null-expression1-tool.cwl ./v1.0/null-expression1-job.json > test.txt
cwl-runner --pack test.txt > test2.txt
diff test*
--- test.txt
+++ test2.txt
@@ -9,13 +9,13 @@
{
"type": "Any",
"default": "the-default",
- "id": "#main/i1"
+ "id": "#main/main/i1"
}
],
"outputs": [
{
"type": "int",
- "id": "#main/output"
+ "id": "#main/main/output"
}
],
"expression": "$({'output': (inputs.i1 == 'the-default' ? 1 : 2)})",
Workflow Code
See compliance tests
v1.0/null-expression1-tool.cwl
Full Traceback
NA
Your Environment
- cwltool version: 1.0.20171017195544
Check usingcwltool --version
Activity
mr-c commentedon Nov 12, 2017
Thank you @wgerlach for this report; I concur with that this is a bug and this feature should be made to be idempotent.
anton-khodak commentedon Nov 21, 2017
Another error (but the same scope) with running a packed workflow:
Merge branch 'master' into fix/#560
Merge remote-tracking branch 'origin/fix/#560' into fix/#560
Merge remote branch 'fix/#560' into 'fix/#560'
Merge branch 'master' into fix/#560
Merge branch 'master' into fix/#560
Merge pull request #570 from common-workflow-language/fix/#560
Squashed 'cwltool/schemas/' changes from 0f28896..0d75172e
Squashed 'cwltool/schemas/' changes from 0f28896..721aa892