fix container definition formatting for fgumi/gatk4 - #12756
Merged
Conversation
maxulysse
approved these changes
Aug 20, 2026
maxulysse
approved these changes
Aug 20, 2026
maxulysse
left a comment
Member
There was a problem hiding this comment.
you can force merge this one and skip CI to save the polar bear forest
mashehu
pushed a commit
to asharaali/tools
that referenced
this pull request
Sep 1, 2026
`nf-core modules bump-versions` rewrote the container directive with the
ternary operators at column 0 and padding inside `${...}`:
container "${ workflow.containerEngine in ['singularity', 'apptainer'] && !task.ext.singularity_pull_docker_container
? 'https://...'
: 'quay.io/...' }"
Every module in nf-core/modules writes the operators at the start of the
indented continuation lines instead, with no padding:
container "${workflow.containerEngine in ['singularity', 'apptainer'] && !task.ext.singularity_pull_docker_container
? 'https://...'
: 'quay.io/...'}"
The cause is the order of the interpolations in `_replace`: `f"? {inner_indent}"`
emits the operator before the indent rather than after it.
This is the formatting undone by hand across 106 files in nf-core/modules#12756,
which is the PR the issue links to.
Adds a regression test asserting the canonical block is what lands in main.nf.
Closes nf-core#4452
Signed-off-by: Ashar Ali <aaa467@njit.edu>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR checklist
Closes #XXX
topic: versions- See version_topicslabelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile conda