Skip to content

Pass through 'resolver' when loading workflow steps. #498

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 27, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cwltool/draft2tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def makePathMapper(self, reffiles, stagedir, **kwargs):

def updatePathmap(self, outdir, pathmap, fn):
# type: (Text, PathMapper, Dict) -> None
if "location" in fn:
if "location" in fn and fn["location"] in pathmap:
pathmap.update(fn["location"], pathmap.mapper(fn["location"]).resolved,
os.path.join(outdir, fn["basename"]),
("Writable" if fn.get("writable") else "") + fn["class"], False)
Expand Down
3 changes: 3 additions & 0 deletions cwltool/pathmapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,3 +252,6 @@ def reversemap(self, target): # type: (Text) -> Tuple[Text, Text]

def update(self, key, resolved, target, type, stage): # type: (Text, Text, Text, Text, bool) -> None
self._pathmap[key] = MapperEnt(resolved, target, type, stage)

def __contains__(self, key):
return key in self._pathmap
2 changes: 1 addition & 1 deletion cwltool/stdfsaccess.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ def docker_compatible_realpath(self, path): # type: (Text) -> Text
if path.startswith('/'):
return path
return '/'+path
return os.path.realpath(path)
return self.realpath(path)
3 changes: 2 additions & 1 deletion cwltool/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,8 @@ def __init__(self, toolpath_object, pos, **kwargs):
toolpath_object["run"], kwargs.get("makeTool"), kwargs,
enable_dev=kwargs.get("enable_dev"),
strict=kwargs.get("strict"),
fetcher_constructor=kwargs.get("fetcher_constructor"))
fetcher_constructor=kwargs.get("fetcher_constructor"),
resolver=kwargs.get("resolver"))
except validate.ValidationException as v:
raise WorkflowException(
u"Tool definition %s failed validation:\n%s" %
Expand Down