File tree Expand file tree Collapse file tree
modules/nextflow/src/main/groovy/nextflow/module Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import groovy.util.logging.Slf4j
2121import nextflow.Global
2222import nextflow.NF
2323import nextflow.Session
24+ import nextflow.config.ConfigBuilder
2425import nextflow.config.ModulesConfig
2526import nextflow.config.RegistryConfig
2627import nextflow.exception.IllegalModulePath
@@ -50,7 +51,9 @@ class DefaultRemoteModuleResolver implements RemoteModuleResolver {
5051 Path resolve (String moduleName , Path baseDir ) {
5152
5253 final modulesConfig = getModuleConfig(baseDir)
53- final registryConfig = Global . config. navigate(' registry' ) as RegistryConfig
54+
55+ final config = Global . config ?: new ConfigBuilder (). setBaseDir(baseDir). build()
56+ final registryConfig = config. navigate(' registry' ) as RegistryConfig
5457
5558 // Create module resolver
5659 def resolver = new ModuleResolver (baseDir, modulesConfig, registryConfig)
@@ -83,7 +86,7 @@ class DefaultRemoteModuleResolver implements RemoteModuleResolver {
8386 def specFile = new PipelineSpec (baseDir)
8487
8588 if (! specFile. exists()) {
86- log. warn1(" Remote module specified and 'nextflow_spec.json' not found. " )
89+ log. warn1(" Remote module specified and 'nextflow_spec.json' not found" )
8790 return new ModulesConfig ()
8891 }
8992
You can’t perform that action at this time.
0 commit comments