Preserve order of plugin declarations in config#7227
Merged
Conversation
Signed-off-by: Jorge Aguilera <[email protected]>
✅ Deploy Preview for nextflow-docs-staging canceled.
|
bentsherman
approved these changes
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 asconfig.plugins = cmdRun.plugins.tokenize(',')) and pf4j works finebut if we use the
pluginDSL in,nextflow.confignextflow are using aHashsetand it can't guarantee the order so pipelines fail randomlyThis PR uses
LinkedHashSetto guarantee the order as declared in the closure