Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linting failure appearing on subworkflows even without deprecated section #2467

Closed
anoronh4 opened this issue Oct 12, 2023 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@anoronh4
Copy link
Contributor

anoronh4 commented Oct 12, 2023

Description of the bug

Getting the lint failure: Deprecated section 'modules' not found in meta.yml on current nf-core subworkflows. Not sure i understand this failure, based on the code it looks like i might be getting this failure no matter what:

if "modules" in meta_yaml:
subworkflow.failed.append(
(
"meta_modules_deprecated",
f"Deprecated section 'modules' found in `meta.yml`, use 'components' instead",
subworkflow.meta_yml,
)
)
else:
subworkflow.failed.append(
(
"meta_modules_deprecated",
f"Deprecated section 'modules' not found in `meta.yml`",
subworkflow.meta_yml,
)
)

I am finding this on current subworkflows in the nf-core/modules repo.

Command used and terminal output

$ nf-core subworkflows lint fastq_align_star

                                          ,--./,-.
          ___     __   __   __   ___     /,-._.--~\
    |\ | |__  __ /  ` /  \ |__) |__         }  {
    | \| |       \__, \__/ |  \ |___     \`-._,-`-,
                                          `._,._,'

    nf-core/tools version 2.10 - https://nf-co.re


INFO     Linting modules repo: '.'                                                                                                                                         
INFO     Linting subworkflow: 'fastq_align_star'                                                                                                                           

╭─ [!] 2 Subworkflow Test Warnings ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                           ╷                                               ╷                                                                             │
│ Subworkflow name                          │ File path                                     │ Test message                                                                │
│╶──────────────────────────────────────────┼───────────────────────────────────────────────┼────────────────────────────────────────────────────────────────────────────╴│
│ fastq_align_star                          │ subworkflows/nf-core/fastq_align_star/main.nf │ Included component 'BAM_SORT_STATS_SAMTOOLS' versions are not added in      │
│                                           │                                               │ main.nf                                                                     │
│ fastq_align_star                          │ subworkflows/nf-core/fastq_align_star/main.nf │ Included component 'STAR_ALIGN' versions are not added in main.nf           │
│                                           ╵                                               ╵                                                                             │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ [✗] 1 Subworkflow Test Failed ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│                                           ╷                                                ╷                                                                            │
│ Subworkflow name                          │ File path                                      │ Test message                                                               │
│╶──────────────────────────────────────────┼────────────────────────────────────────────────┼───────────────────────────────────────────────────────────────────────────╴│
│ fastq_align_star                          │ subworkflows/nf-core/fastq_align_star/meta.yml │ Deprecated section 'modules' not found in meta.yml                         │
│                                           ╵                                                ╵                                                                            │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭───────────────────────╮
│ LINT RESULTS SUMMARY  │
├───────────────────────┤
│ [✔] 134 Tests Passed  │
│ [!]   2 Test Warnings │
│ [✗]   1 Test Failed   │
╰───────────────────────╯

System information

nextflow version 23.04.4
CentOS7 linux
local executor
HPC
nf-core tools 2.10
python 3.10.8

@anoronh4 anoronh4 added the bug Something isn't working label Oct 12, 2023
@anoronh4 anoronh4 changed the title Linting error thrown on subworkflows even without deprecated section Linting failure appearing on subworkflows even without deprecated section Oct 12, 2023
@anoronh4
Copy link
Contributor Author

just noticed this was fixed in the dev version of tools with #2447 -- i'll close this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant