Skip to content

fix container definition formatting for fgumi/gatk4 - #12756

Merged
matthdsm merged 3 commits into
masterfrom
fix/fgumi-container-formatting
Aug 20, 2026
Merged

fix container definition formatting for fgumi/gatk4#12756
matthdsm merged 3 commits into
masterfrom
fix/fgumi-container-formatting

Conversation

@matthdsm

Copy link
Copy Markdown
Contributor

PR checklist

Closes #XXX

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the module conventions in the contribution docs
  • If necessary, include test data in your PR.
  • Remove all TODO statements.
  • Broadcast software version numbers to topic: versions - See version_topics
  • Follow the naming conventions.
  • Follow the parameters requirements.
  • Follow the input/output options guidelines.
  • Add a resource label
  • Use BioConda and BioContainers if possible to fulfil software requirements.
  • Ensure that the test works with either Docker / Singularity. Conda CI tests can be quite flaky:
    • For modules:
      • nf-core modules test <MODULE> --profile docker
      • nf-core modules test <MODULE> --profile singularity
      • nf-core modules test <MODULE> --profile conda
    • For subworkflows:
      • nf-core subworkflows test <SUBWORKFLOW> --profile docker
      • nf-core subworkflows test <SUBWORKFLOW> --profile singularity
      • nf-core subworkflows test <SUBWORKFLOW> --profile conda

@matthdsm
matthdsm requested a review from maxulysse as a code owner August 20, 2026 08:39
@matthdsm matthdsm changed the title fix container definition formatting for fgumi fix container definition formatting for fgumi/gatk4 Aug 20, 2026
@github-actions github-actions Bot added size/m and removed size/s labels Aug 20, 2026
@github-actions github-actions Bot added size/l and removed size/m labels Aug 20, 2026

@maxulysse maxulysse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can force merge this one and skip CI to save the polar bear forest

@matthdsm
matthdsm merged commit d5de7a9 into master Aug 20, 2026
85 checks passed
@matthdsm
matthdsm deleted the fix/fgumi-container-formatting branch August 20, 2026 08:45
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants