-
Notifications
You must be signed in to change notification settings - Fork 757
Closed
Description
Bug report
Expected behavior and actual behavior
publishDir "${params.outdir}/fastq", mode: 'copy', pattern: 'fastq-merge-lanes/*.fastq', overwrite: true, saveAs: { "${sample_name}.fastq" }`
should overwrite files in outdir but during resume a warning appears
WARN: Failed to publish file: ... to: ... [copy] -- See log file for details
The log clarifies that the file already exists in the output directory.
When -resume is not used, no errors occur. Nextflow appears to be overwriting the specified value for overwrite with its default.
https://www.nextflow.io/docs/latest/process.html#publishdir
Steps to reproduce the problem
- Create a process that publishes with
overwrite: true - Run nextflow
- Run nextflow again with -resume
- Failure to publish should ensue
Environment
- Nextflow version:
N E X T F L O W
version 19.04.1 build 5072
last modified 03-05-2019 12:29 UTC (07:29 CDT)
cite doi:10.1038/nbt.3820
http://nextflow.io
- Java version:
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
- Operating system: AWS Linux
raivivek