Skip to content

Commit

Permalink
Fix bug with Fusion symlink resolution (#4593)
Browse files Browse the repository at this point in the history
This commit is a supplement to PR #4348
to fix the issue #4309

Signed-off-by: Ben Sherman <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
Co-authored-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
bentsherman and pditommaso committed Dec 17, 2023
1 parent 4bd660b commit 9a58236
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ class PublishDir {
}

protected Map<String,Path> getTaskInputs() {
return task?.getInputFilesMap()
return task ? task.getInputFilesMap() : Map.<String,Path>of()
}

void setPath( def value ) {
Expand Down Expand Up @@ -294,6 +294,7 @@ class PublishDir {
this.sourceDir = task.targetDir
this.sourceFileSystem = sourceDir.fileSystem
this.stageInMode = task.config.stageInMode
this.task = task

apply0(files)
}
Expand Down
2 changes: 2 additions & 0 deletions tests/checks/fusion-symlink.nf/.checks
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ fi
# normal run
#
echo initial run
$NXF_CMD fs rm s3://nextflow-ci/work/ci-test/fusion-symlink/data.txt || true
$NXF_RUN -c .config

$NXF_CMD fs cp s3://nextflow-ci/work/ci-test/fusion-symlink/data.txt data.txt
Expand All @@ -19,6 +20,7 @@ cmp data.txt .expected || false
# resume run
#
echo resumed run
$NXF_CMD fs rm s3://nextflow-ci/work/ci-test/fusion-symlink/data.txt || true
$NXF_RUN -c .config -resume

$NXF_CMD fs cp s3://nextflow-ci/work/ci-test/fusion-symlink/data.txt data.txt
Expand Down

0 comments on commit 9a58236

Please sign in to comment.