Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Preserve order of plugin declarations in config#7227

Merged
bentsherman merged 2 commits into
nextflow-io:masterfrom
jagedn:master
Jun 12, 2026
Merged

Preserve order of plugin declarations in config#7227
bentsherman merged 2 commits into
nextflow-io:masterfrom
jagedn:master

Conversation

@jagedn

@jagedn jagedn commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

In nf-nomad team we are using 2 plugins, nf-nomad and nf-s5cmd.

nf-s5cmd declares a dependency against nf-nomad and in previous version of nextflow all works fine and plugins are resolved, doesnt matter the order you declare the plugins in the nextflow.config

With last version of pf4j (from 3.12 to 3.14.1) it seems pf4j requires base plugin (nf-nomad) be loaded first

If we specify the plugins via command line ( i.e. -plugins [email protected],[email protected]) they are loaded in the right order ( as CmdRun parses this as config.plugins = cmdRun.plugins.tokenize(',') ) and pf4j works fine

but if we use the plugin DSL in, nextflow.config nextflow are using a Hashset and it can't guarantee the order so pipelines fail randomly

This PR uses LinkedHashSet to guarantee the order as declared in the closure

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 8e5f4fd
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/6a2c1a09900189000814de3b

@bentsherman bentsherman merged commit 3fa70ed into nextflow-io:master Jun 12, 2026
22 checks passed
@bentsherman bentsherman changed the title sort plugin order as declared in config dsl Preserve order of plugin declarations in config Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants