If I swapped modules to topics, can (and should) I...
# hackathon-oct-2025-versions-topics-adoption
f
If I swapped modules to topics, can (and should) I remove the following line from my config?
Copy code
saveAs: { filename -> filename.equals('versions.yml') ? null : filename },
👍 2
m
Remove it all
f
How do I need to declare this to adhere to the new syntax:
Copy code
withName: 'SORT_CALLED_CHUNKS' {
        ext.args   = { '--output-type z --write-index=tbi' }
        publishDir = [
            mode: params.publish_dir_mode,
            path: { "${params.outdir}/variant_calling/" },
            saveAs: { params.varlociraptor_chunk_size > 1 ? null : "varlociraptor/${meta.id}/${it}" }
        ]
    }
it says
saveAs: { params.varlociraptor_chunk_size > 1 ? null : "varlociraptor/${meta.id}/${it}" }
is not allowed because of the it but no matter what I change its still highlighted
m
Try : saveAs: { file -> params.varlociraptor_chunk_size > 1 ? null : "varlociraptor/${meta.id}/${file}" }
f
somehow my vscode still complains but lets see