You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my understanding, Section 3.7 says that the platforms must look in several directories such as ~/.local/share/commonwl to search for CWL documents.
However, cwltool does not look in these directories.
cwltool can find echo-tool-default.cwl for step step1 in echo-wf-default.cwl.
$ cwltool echo-wf-default.cwl...[workflow echo-wf-default.cwl] completed success{ "default_output": "workflow_default"}Final process status is success
Actual Behavior
cwltool failed to find echo-tool-default.cwl. It seems not to look in ~/.local/share/commonwl.
$ cwltool --debug echo-wf-default.cwl/Users/tom-tan/.pyenv/versions/3.6.5/bin/cwltool 1.0.20180403145700Resolved 'echo-wf-default.cwl' to 'file:///Users/tom-tan/common-workflow-language/v1.0/v1.0/echo-wf-default.cwl'Tool definition failed validation:echo-wf-default.cwl:7:1: checking field `steps`echo-wf-default.cwl:8:3: checking object `echo-wf-default.cwl#step1`echo-wf-default.cwl:9:5: Field `run` contains undefined reference to `file:///Users/tom-tan/common-workflow-language/v1.0/v1.0/echo-tool-default.cwl`Traceback (most recent call last): File "/Users/tom-tan/.pyenv/versions/3.6.5/lib/python3.6/site-packages/cwltool/main.py", line 483, in main do_validate=args.do_validate) File "/Users/tom-tan/.pyenv/versions/3.6.5/lib/python3.6/site-packages/cwltool/load_tool.py", line 266, in validate_document processobj, new_metadata = document_loader.resolve_all(workflowobj, fileuri, checklinks=do_validate) File "/Users/tom-tan/.pyenv/versions/3.6.5/lib/python3.6/site-packages/schema_salad/ref_resolver.py", line 913, in resolve_all self.validate_links(document, u"", all_doc_ids) File "/Users/tom-tan/.pyenv/versions/3.6.5/lib/python3.6/site-packages/schema_salad/ref_resolver.py", line 1081, in validate_links raise errors[0]schema_salad.validate.ValidationException: echo-wf-default.cwl:7:1: checking field `steps`echo-wf-default.cwl:8:3: checking object `echo-wf-default.cwl#step1`echo-wf-default.cwl:9:5: Field `run` contains undefined reference to `file:///Users/tom-tan/common-workflow-language/v1.0/v1.0/echo-tool-default.cwl`
Traceback (most recent call last):
File "/Users/tom-tan/.pyenv/versions/3.6.5/lib/python3.6/site-packages/cwltool/main.py", line 483, in main
do_validate=args.do_validate)
File "/Users/tom-tan/.pyenv/versions/3.6.5/lib/python3.6/site-packages/cwltool/load_tool.py", line 266, in validate_document
processobj, new_metadata = document_loader.resolve_all(workflowobj, fileuri, checklinks=do_validate)
File "/Users/tom-tan/.pyenv/versions/3.6.5/lib/python3.6/site-packages/schema_salad/ref_resolver.py", line 913, in resolve_allself.validate_links(document, u"", all_doc_ids)
File "/Users/tom-tan/.pyenv/versions/3.6.5/lib/python3.6/site-packages/schema_salad/ref_resolver.py", line 1081, in validate_linksraise errors[0]
schema_salad.validate.ValidationException: echo-wf-default.cwl:7:1: checking field `steps`
echo-wf-default.cwl:8:3: checking object `echo-wf-default.cwl#step1`
echo-wf-default.cwl:9:5: Field `run` contains undefined reference to `file:///Users/tom-tan/common-workflow-language/v1.0/v1.0/echo-tool-default.cwl`
In my understanding, Section 3.7 says that the platforms must look in several directories such as
~/.local/share/commonwl
to search for CWL documents.However,
cwltool
does not look in these directories.How to reproduce
Expected Behavior
cwltool
can findecho-tool-default.cwl
for stepstep1
inecho-wf-default.cwl
.Actual Behavior
cwltool
failed to findecho-tool-default.cwl
. It seems not to look in~/.local/share/commonwl
.Workflow Code
echo-wf-default.cwl
echo-tool-default.cwl
Full Traceback
Your Environment
The text was updated successfully, but these errors were encountered: