diff --git a/modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy b/modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy index d096e678e6..b089cda33c 100644 --- a/modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy +++ b/modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy @@ -585,7 +585,7 @@ class CmdRun extends CmdBase implements HubOptions { boolean checkForUpdate = true if( !manager.isRunnable() || latest ) { - if( offline ) + if( offline && !pipelineName.startsWith('file:/' ) ) throw new AbortOperationException("Unknown project `$repo` -- NOTE: automatic download from remote repositories is disabled") log.info "Pulling $repo ..." def result = manager.download(revision,deep)