diff --git a/CHANGELOG.md b/CHANGELOG.md index 20989b1d17..154c688983 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ ### Linting +- Correctly pass subworkflow linting test if `COMPONENT.out.versions` is used in the script ([#2448](https://github.com/nf-core/tools/pull/2448)) + ### Modules ### Subworkflows diff --git a/nf_core/subworkflows/lint/main_nf.py b/nf_core/subworkflows/lint/main_nf.py index fbdef593cb..c7ce77490d 100644 --- a/nf_core/subworkflows/lint/main_nf.py +++ b/nf_core/subworkflows/lint/main_nf.py @@ -134,7 +134,7 @@ def check_main_section(self, lines, included_components): self.main_nf, ) ) - if component + ".out.versions" not in script: + if component + ".out.versions" in script: self.passed.append( ( "main_nf_include_versions",