See https://github.com/nextflow-io/nextflow/issues/2992
See nextflow-io/nextflow#2992