Skip to content

Allow module run to run modules with local path#7057

Merged
bentsherman merged 3 commits intomasterfrom
modify-module-run-path
Apr 21, 2026
Merged

Allow module run to run modules with local path#7057
bentsherman merged 3 commits intomasterfrom
modify-module-run-path

Conversation

@jorgee
Copy link
Copy Markdown
Contributor

@jorgee jorgee commented Apr 21, 2026

This pull request enhances the CmdModuleRun command to support running modules directly from a local file path, improves error handling when installing modules, and adds comprehensive tests for these scenarios.

Enhancements to module execution:

  • Added logic in CmdModuleRun to check if the provided argument is a local path; if so, it runs the module directly from that path instead of resolving it from a registry. (CmdModuleRun.groovy)
  • Improved error handling by throwing a specific AbortOperationException when module installation fails, including the problematic argument in the message. (CmdModuleRun.groovy)

Testing improvements:

  • Added tests to verify running a module from a local path, including creating a local module directory and checking output. (CmdModuleRunTest.groovy)
  • Added tests to ensure appropriate errors are raised when the specified path or module does not exist. (CmdModuleRunTest.groovy)

Code maintenance:

  • Imported the Const class to access the default main file name for modules. (CmdModuleRun.groovy)

Signed-off-by: jorgee <jorge.ejarque@seqera.io>
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 21, 2026

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 383fb23
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69e79dd3e668040008c96235

@bentsherman bentsherman self-requested a review April 21, 2026 15:09
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
@bentsherman bentsherman requested a review from a team as a code owner April 21, 2026 15:53
@bentsherman bentsherman merged commit e2c77c6 into master Apr 21, 2026
24 checks passed
@bentsherman bentsherman deleted the modify-module-run-path branch April 21, 2026 16:14
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