From cf0faab636aa81a0365d6420f3e0be029f7e9b97 Mon Sep 17 00:00:00 2001 From: Mathias Rahbek-Borre Date: Thu, 24 Apr 2025 19:38:31 +0200 Subject: [PATCH] added bypass for local pipelines in offline mode Signed-off-by: Mathias Rahbek-Borre --- modules/nextflow/src/main/groovy/nextflow/cli/CmdRun.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)