From 814a2605cb50e658128baa838873e0ffa16f62df Mon Sep 17 00:00:00 2001 From: Paolo Di Tommaso Date: Tue, 15 Mar 2022 08:32:46 +0100 Subject: [PATCH] Add ability to disable config names check [ci fast] --- .../src/main/groovy/nextflow/Session.groovy | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/modules/nextflow/src/main/groovy/nextflow/Session.groovy b/modules/nextflow/src/main/groovy/nextflow/Session.groovy index 5984a0888e..c788d7cbd4 100644 --- a/modules/nextflow/src/main/groovy/nextflow/Session.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/Session.groovy @@ -794,10 +794,16 @@ class Session implements ISession { } @PackageScope void checkConfig() { - final names = ScriptMeta.allProcessNames() - final ver = "dsl${NF.dsl1 ?'1' :'2'}" - log.debug "Workflow process names [$ver]: ${names.join(', ')}" - validateConfig(names) + final enabled = config.navigate('nextflow.enable.configProcessNamesValidation', true) as boolean + if( enabled ) { + final names = ScriptMeta.allProcessNames() + final ver = "dsl${NF.dsl1 ?'1' :'2'}" + log.debug "Workflow process names [$ver]: ${names.join(', ')}" + validateConfig(names) + } + else { + log.debug "Config process names validation disabled as requested" + } } @PackageScope VersionNumber getCurrentVersion() {