-
Notifications
You must be signed in to change notification settings - Fork 201
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
Institutional configs are not included when NXF_OFFLINE
is on
#3430
Comments
I think, the problem is simply a wrong negation for As of now, the evaluation looks like this:
But even if I do not set |
I'm not sure I follow, wouldn't one want to be able to use the institutional configs regardless if one is online or not? Essentially, the default behavior to download the institutional configs from https://github.com/nf-core/configs/. If users want to use them offline, they should set Don't we want the truth table to look something like this instead?
* Assuming the users have set Namely the conditional would be independent of
|
Good point. The institutional configs should be included even in offline mode, if they are locally available. So something like: includeConfig params.custom_config_base && (!System.getenv('NXF_OFFLINE') || !params.custom_config_base.startsWith('http')) ? "${params.custom_config_base}/nfcore_custom.config" : "/dev/null" You could also just condition on @MatthiasZepper we fixed that issue in platform but I don't know if it was backported, so depending on your version you might not have the fix yet |
Add temporary fixes to nf-core/tools#3430
Description of the bug
In the pipeline template,
custom_config_base
is set so that it will be downloaded from github automatically:tools/nf_core/pipeline-template/nextflow.config
Line 63 in 34bc338
As far as I understand, this is the reason this config is excluded later when running in offline mode:
tools/nf_core/pipeline-template/nextflow.config
Line 208 in 34bc338
When downloading institutional profiles, nf-core/tools will set
custom_config_base
to"${projectDir}/../configs/"
, but nextflow will still ignore it whenNXF_OFFLINE
is on.Either nf-core/tools should remove the conditional on L208 when downloading the institutional profiles, or this conditional should be adapted to include this file as long as
custom_config_base
does not point to github.This is a follow up to #3132
How to reproduce:
nf-core pipelines download demultiplex --download-configuration yes --compress none --revision 1.5.4 --container-system singularity
export NXF_OFFLINE='true'
nextflow run nf-core-demultiplex_1.5.4/1_5_4/main.nf -profile test,singularity,uppmax --outdir outdir
Command used and terminal output
System information
No response
The text was updated successfully, but these errors were encountered: