Skip to content

Commit 6eaa998

Browse files
authored
Merge pull request #3356 from mirpedrol/fix-include-modules-config
fix including modules.config
2 parents 06980d4 + a2c2339 commit 6eaa998

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
### Modules
1212

13+
- fix including modules.config ([#3356](https://github.com/nf-core/tools/pull/3356))
14+
1315
### Subworkflows
1416

1517
### General

nf_core/pipeline-template/nextflow.config

+5-5
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@ params {
7777
includeConfig 'conf/base.config'
7878
{%- else %}
7979

80-
{% if modules -%}
81-
// Load modules.config for DSL2 module specific options
82-
includeConfig 'conf/modules.config'
83-
{%- endif %}
84-
8580
process {
8681
// TODO nf-core: Check the defaults for all processes
8782
cpus = { 1 * task.attempt }
@@ -336,3 +331,8 @@ validation {
336331
}{% endif %}
337332
}
338333
{%- endif %}
334+
335+
{% if modules -%}
336+
// Load modules.config for DSL2 module specific options
337+
includeConfig 'conf/modules.config'
338+
{%- endif %}

0 commit comments

Comments
 (0)