Skip to content

Commit

Permalink
Add ability to disable config names check [ci fast]
Browse files Browse the repository at this point in the history
  • Loading branch information
pditommaso committed Mar 15, 2022
1 parent 55466be commit 814a260
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions modules/nextflow/src/main/groovy/nextflow/Session.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 814a260

Please sign in to comment.