From a67c898958f6affc8cb9de05fe87c9228a4fc63e Mon Sep 17 00:00:00 2001 From: stxue1 Date: Thu, 9 Jan 2025 10:37:05 -0800 Subject: [PATCH] Change caching pathmapper to respect the pathmapper factory --- cwltool/command_line_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cwltool/command_line_tool.py b/cwltool/command_line_tool.py index e201fb12b..775360016 100644 --- a/cwltool/command_line_tool.py +++ b/cwltool/command_line_tool.py @@ -807,10 +807,10 @@ def job( cachecontext.tmpdir = "/tmp" # nosec cachecontext.stagedir = "/stage" cachebuilder = self._init_job(job_order, cachecontext) - cachebuilder.pathmapper = PathMapper( + cachebuilder.pathmapper = self.make_path_mapper( cachebuilder.files, - runtimeContext.basedir, cachebuilder.stagedir, + runtimeContext, separateDirs=False, ) _check_adjust = partial(check_adjust, self.path_check_mode.value, cachebuilder)