Repository navigation
load_tool: when no version or incorrect cwlVersion is found, create fatal error - #491
Merged
Merged
Conversation
Member
|
If no version number is found it should be a fatal error. |
manu-chroma
commented
Jul 22, 2017
| else: | ||
| _logger.warning("No cwlVersion found, treating this file as draft-2.") | ||
| workflowobj["cwlVersion"] = "draft-2" | ||
| _logger.warning("No cwlVersion found, treating this file as v1.0") |
Member
Author
There was a problem hiding this comment.
@tetron No such fallback should be provided?
#482 (comment)
Member
There was a problem hiding this comment.
Yes, instead of falling back it should be a fatal error. We don't want to encourage people to start writing files cwl where we can't identify the version, it makes spec evolution much harder.
Member
Author
|
testing on the example @FarahZKhan mentioned #482 (comment) (venv3) [venv3] $ cwltool --pack hello-param.cwl params.yaml
/home/manu/github/cwltool/venv3/bin/cwltool 1.0.20170717092913
Resolved 'hello-param.cwl' to 'file:///home/manu/github/test_cwl_runner/workflows/workflows/hello/hello-param.cwl'
Tool definition failed validation:
No cwlVersion found. Use the following syntax in your CWL workflow to declare version: cwlVersion: <version> |
Member
Author
|
When using |
Member
Author
|
Also, added tests :) |
Member
Author
|
With this PR merged: Is this behavior acceptable? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #341, #140