nextflow
nextflow copied to clipboard
moduleBinaries param cannot be set in main.nf file
Bug report
Coming from this question (https://github.com/nextflow-io/nextflow/discussions/5203)
Expected behavior and actual behavior
According to the documentation, see here, when using module binaries we should include the parameter nextflow.enable.moduleBinaries
either in the main file or in the configuration file.
To enable this feature, enable the following flag in your pipeline script or configuration file:
Including the parameter in the config file works as expected, however, including it in the main.nf
file results in the following error.
$ nextflow run main.nf
Nextflow 24.04.4 is available - Please consider updating your version to it
N E X T F L O W ~ version 24.04.3
Launching `main.nf` [kickass_agnesi] DSL2 - revision: 8091327fbc
ERROR ~ No such variable: moduleBinaries
-- Check script 'main.nf' at line: 3 or see '.nextflow.log' file for more details
Steps to reproduce the problem
I have created a fork of the nextflow-io/hello
repository to test this, see below:
https://github.com/davidmasp/hello-modbins
See commit -> 3766dd9
for the expected behavior when parameter is set in the config file.
See last commit -> 5c91c64
for breaking behavior when parameter is set in the main.nf
file
Program output
$ nextflow run main.nf
Nextflow 24.04.4 is available - Please consider updating your version to it
N E X T F L O W ~ version 24.04.3
Launching `main.nf` [kickass_agnesi] DSL2 - revision: 8091327fbc
ERROR ~ No such variable: moduleBinaries
-- Check script 'main.nf' at line: 3 or see '.nextflow.log' file for more details
Environment
- Nextflow version: 24.04.3
- Java version:
openjdk version "17.0.10" 2024-01-16
- Operating system: macos but also tested in linux
- Bash version:
zsh 5.9 (x86_64-apple-darwin23.0)
Additional context
None