From 360ea19ab4aa5558805d6a2e556aa0f358f159d3 Mon Sep 17 00:00:00 2001 From: Nicola Soranzo Date: Mon, 3 Feb 2025 13:15:19 +0000 Subject: [PATCH] Allow dev versions of CWL 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 https://github.com/common-workflow-lab/galaxy/issues/147 --- lib/galaxy/tool_util/cwl/schema.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/galaxy/tool_util/cwl/schema.py b/lib/galaxy/tool_util/cwl/schema.py index 03370b03d2ba..884fbc5c5d34 100644 --- a/lib/galaxy/tool_util/cwl/schema.py +++ b/lib/galaxy/tool_util/cwl/schema.py @@ -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