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

Skip to content

Allow plugin version to be specified when running a plugin command#7113

Merged
bentsherman merged 9 commits into
nextflow-io:masterfrom
JosuaCarl:fix/cli-plugin-versioning
Jun 16, 2026
Merged

Allow plugin version to be specified when running a plugin command#7113
bentsherman merged 9 commits into
nextflow-io:masterfrom
JosuaCarl:fix/cli-plugin-versioning

Conversation

@JosuaCarl

@JosuaCarl JosuaCarl commented May 7, 2026

Copy link
Copy Markdown
Contributor

Goal

Correct fetching of plugin in nextflow plugin CLI command via pluginId and version separation

Changes

  • Created executeCustomPluginCmd function, similar to createPlugin to handle logical fork in run
  • Tokenized name to fetch correct plugin via Plugins.manager.getPlugin

Related issues

…pluginId and version separation

Signed-off-by: Josua Carl <[email protected]>
@netlify

netlify Bot commented May 7, 2026

Copy link
Copy Markdown

Deploy Preview for nextflow-docs-staging canceled.

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

@jorgee jorgee left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me, just minor comments.

Comment thread modules/nextflow/src/main/groovy/nextflow/cli/CmdPlugin.groovy Outdated
Comment thread modules/nextflow/src/main/groovy/nextflow/cli/CmdPlugin.groovy Outdated
@JosuaCarl JosuaCarl requested a review from jorgee May 26, 2026 11:08
@bentsherman bentsherman changed the title Fix: Correct fetching of plugin in nextflow plugin CLI command Allow plugin version to be specified when running a plugin command Jun 9, 2026
@bentsherman bentsherman force-pushed the fix/cli-plugin-versioning branch from 28005a8 to 925ca0e Compare June 9, 2026 14:40
@bentsherman

Copy link
Copy Markdown
Member

As far as I can tell, this is new scope, not a bug fix. The docs suggest that it was never possible to specify the plugin version:

https://docs.seqera.io/nextflow/reference/cli#plugin

@pditommaso are you okay with allowing the plugin version when running a plugin command:

nextflow plugin [email protected]:mycommand ...

it's a bit messy but it is useful for local testing, since you always need to specify the plugin version in that case

@pditommaso

Copy link
Copy Markdown
Member

In some extends I agree with you. However it's consistent with install subcommand and can be useful in some corner cases. Not against.

@bentsherman bentsherman requested a review from a team as a code owner June 16, 2026 14:03
@bentsherman bentsherman merged commit 7eeeb77 into nextflow-io:master Jun 16, 2026
23 checks passed
@JosuaCarl JosuaCarl deleted the fix/cli-plugin-versioning branch June 17, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin version causes error in nextflow plugin command How to run nextflow plugin <id>:command against a locally-installed development plugin

5 participants