diff --git a/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy b/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy index 0a503ab920..775fb68f9e 100644 --- a/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/processor/PublishDir.groovy @@ -134,7 +134,7 @@ class PublishDir { } protected Map getTaskInputs() { - return task?.getInputFilesMap() + return task ? task.getInputFilesMap() : Map.of() } void setPath( def value ) { @@ -294,6 +294,7 @@ class PublishDir { this.sourceDir = task.targetDir this.sourceFileSystem = sourceDir.fileSystem this.stageInMode = task.config.stageInMode + this.task = task apply0(files) } diff --git a/tests/checks/fusion-symlink.nf/.checks b/tests/checks/fusion-symlink.nf/.checks index a28366d245..5d758c6f21 100644 --- a/tests/checks/fusion-symlink.nf/.checks +++ b/tests/checks/fusion-symlink.nf/.checks @@ -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 @@ -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