askimed / nf-test

Simple test framework for Nextflow pipelines
https://www.nf-test.com
MIT License
140 stars 23 forks source link

Connection refused when using plugins #234

Open MarieLataretu opened 3 months ago

MarieLataretu commented 3 months ago

Hi all,

I'm working on an HPC, and the automatic installation of plugins fails:

nf-test test main.nf.test --profile singularity

🚀 nf-test 0.8.4
https://code.askimed.com/nf-test
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr

Error: Syntax errors in nf-test config file: java.net.ConnectException: Connection refused

nf-test.config snippet (I see no syntax error):

    plugins {
        load "nft-bam@0.3.0"
        load "nft-vcf@1.0.6"
        load "nft-fasta@1.0.0"
    }

Same when using --plugins:

nf-test test main.nf.test --profile singularity --plugins=nft-bam

🚀 nf-test 0.8.4
https://code.askimed.com/nf-test
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr

Error: java.net.ConnectException: Connection refused

Where does it try to connect to?

lukfor commented 3 months ago

Nf-test downloads the plugins from github.

MarieLataretu commented 3 months ago

I tried to understand the code a bit:

This line would download a jar, e.g. https://github.com/seppinho/nft-vcf/releases/download/v1.0.4/nft-vcf-1.0.4.jar

Is that correct?

lukfor commented 2 weeks ago

Yes, that's correct. It first downloads the repository from https://github.com/askimed/nf-test-plugins/blob/main/plugins.json. Then it downloads the version of the plugin from the URL found in this file.