Skip to content

Commit

Permalink
Fix Git config resultion error
Browse files Browse the repository at this point in the history
This commit patches an error when resolving a Git configuration
while the 'scm' config file does not contain a matching provider
and a pull/run is executed.

Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Jun 9, 2022
1 parent be49efd commit 6443669
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ class AssetManager {
throw new AbortOperationException(message)
}

final result = providerConfigs.find { it -> it.domain == domain }
final result = domain ? providerConfigs.find { it -> it.domain == domain } : (ProviderConfig)null
if( !result && failFast ) {
def message = "Can't find any configured provider for git server `$domain` -- Make sure to have specified it in your `scm` file. For details check https://www.nextflow.io/docs/latest/sharing.html#scm-configuration-file"
throw new AbortOperationException(message)
Expand Down

0 comments on commit 6443669

Please sign in to comment.