<@U02JS8EFMMJ> Tried creating a new pipeline with ...
# team-maintainers
f
@Júlia Mir Tried creating a new pipeline with a
template.yml
(using the template text from the create page) today and ran into the following issues: nf-core tools version: 3.2.0
Can't format
Copy code
INFO     Creating new pipeline: 'coolpipe'                                                               
INFO     Saving metadata file to                                                                         
         '/workspaces/training/side-quests/nf-core/nf-core-demo/custom-pipeline/nf-core-coolpipe'        
CRITICAL Can't format
slackreport.json
Copy code
prettier.................................................................Failed                 
         - hook id: prettier                                                                             
         - exit code: 2                                                                                  
                                                                                                         
          side-quests/nf-core/nf-core-demo/custom-pipeline/nf-core-coolpipe/assets/adaptivecard.json:    
         SyntaxError: Unexpected token (57:47)                                                           
            55 |                                 {                                                       
            56 |                                     "type": "FactSet",                                  
          > 57 |                                     "facts": [<% out << summary.collect{ k,v ->         
         "{\"title\": \"$k\", \"value\" : \"$v\"}"}.join(",\n") %>                                       
               |                                               ^                                         
            58 |                                     ]                                                   
            59 |                                 }                                                       
            60 |                             ]                                                           
                                                                                                         
          side-quests/nf-core/nf-core-demo/custom-pipeline/nf-core-coolpipe/assets/slackreport.json:     
         SyntaxError: Unexpected token (15:18)                                                           
            13 |                     "short": false                                                      
            14 |                 }                                                                       
          > 15 |                 <%                                                                      
               |                  ^                                                                      
            16 |                     if (!success) { %>                                                  
            17 |                     ,                                                                   
            18 |                     {                                                                   
         side-quests/nf-core/nf-core-demo/custom-pipeline/nf-core-coolpipe/assets/email_template.html    
         side-quests/nf-core/nf-core-demo/custom-pipeline/nf-core-coolpipe/ro-crate-metadata.json
Is there something broken in the template when generating from yml or is the documentation of the template.yml out of date?
😱 1
• Additionally, it didn't use the org I specified and defaulted to nf-core. • And it added fastqc even though it was in skip_features. This makes me think documentation is just out of date and the template ignored the template.yml?!
j
what features are you skipping? sometimes with specific combinations we overlook errors because it's difficult to test all of them 😞
could you share your template file? I will try to reproduce
it should be possible to use the template file, but now I'm doubting if the format is outdated in the docs
f
Here is the template. it's literally copied out from the pipeline create docs: https://nf-co.re/docs/nf-core-tools/pipelines/create
Copy code
name: coolpipe
description: A cool pipeline
author: me
prefix: myorg
skip:
    - github
    - ci
    - github_badges
    - igenomes
    - nf_core_configs
template:
    author: me
    description: A cool pipeline
    force: false
    is_nfcore: false
    name: coolpipe
    org: myorg
    outdir: .
    skip_features:
        - github
        - ci
        - igenomes
        - nf_core_configs
        - code_linters
        - citations
        - gitpod
        - codespaces
        - multiqc
        - fastqc
        - modules
        - changelog
        - nf_schema
        - license
        - email
        - adaptivecard
        - slackreport
        - documentation
        - test_config
        - seqera_platform
    version: 1.0.0dev