Skip to content

Commit

Permalink
Allow dev versions of CWL
Browse files Browse the repository at this point in the history
Otherwise do_update (which we want to update from older CWL versions)
will update tools to the latest version, which may be a dev one,
causing errors like:

```
schema_salad.exceptions.ValidationException: Version 'v1.3.0-dev1' is a development or deprecated version.
 Update your document to a stable version (v1.0, v1.1, v1.2) or use --enable-dev to enable support for development and deprecated versions.
```

Together with the fixes to not unnecessarily recreate ToolProxy, fix
common-workflow-lab#147
  • Loading branch information
nsoranzo committed Feb 3, 2025
1 parent 0482f74 commit 360ea19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/galaxy/tool_util/cwl/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def loading_context(self):
loading_context.strict = self._strict
loading_context.do_validate = self._validate
loading_context.loader = self.raw_document_loader
loading_context.enable_dev = True
loading_context.do_update = True
loading_context.relax_path_checks = True
return loading_context
Expand Down

0 comments on commit 360ea19

Please sign in to comment.