From 3fd459481ab83c7074e7caeef07efdc50fd9a7c8 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Mon, 24 Oct 2022 16:17:57 +0200 Subject: [PATCH] Allow overrides using reqs from CWL v1.1+ --- cwltool/load_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cwltool/load_tool.py b/cwltool/load_tool.py index f574b67e48..bd821790af 100644 --- a/cwltool/load_tool.py +++ b/cwltool/load_tool.py @@ -39,7 +39,7 @@ from .errors import GraphTargetMissingException from .loghandler import _logger from .process import Process, get_schema, shortname -from .update import ALLUPDATES +from .update import ALLUPDATES, INTERNAL_VERSION from .utils import CWLObjectType, ResolverType, visit_class jobloaderctx = { @@ -650,7 +650,7 @@ def resolve_overrides( ret, _ = ovloader.resolve_all(ov, baseurl) if not isinstance(ret, CommentedMap): raise Exception("Expected CommentedMap, got %s" % type(ret)) - cwl_docloader = get_schema("v1.0")[0] + cwl_docloader = get_schema(INTERNAL_VERSION)[0] cwl_docloader.resolve_all(ret, ov_uri) return cast(List[CWLObjectType], ret["http://commonwl.org/cwltool#overrides"])