Skip to content

Commit

Permalink
Allow overrides using reqs from CWL v1.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Oct 24, 2022
1 parent 72e4ffb commit 3fd4594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cwltool/load_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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"])

Expand Down

0 comments on commit 3fd4594

Please sign in to comment.