Bug report
Given a simple workflow that creates a file
workflow {
Channel.value("Seqera")
| MakeJson
| PublishIdCard
}
process MakeJson {
input: val(name)
output: tuple val(name), path('*.json')
script:
"""
echo '{"name":"$name"}' > id.${name}.json
"""
}
process PublishIdCard {
publishDir 'results'
input: tuple val(name), path("jsons/*")
output: path("symlink.json")
script: "ln -s jsons/id.${name}.json symlink.json"
}
... and configuration that sets fusion:
workDir = 's3://my-bucket-name/work'
wave.enabled = true
fusion.enabled = true
docker.enabled = true
process.scratch = false
process.container = 'ubuntu:latest'
Expected behavior and actual behavior
I would expect the contents of the file published at ./results/symlink.json to include the json document
...but instead it is a text file containing:
Notes
The .fusion.symlinks document in the task working directory of the PublishIdCard task contains the text symlink.json, but Nextflow doesn't seem to follow the symlink when publishing.