Skip to content

Providing input a typed param does not work when there is an include in the script that has a params block as well #6936

Description

@VasLem

Bug report

Example:

test2.nf:

params {
    test2_param: String = "test2"
}
process test2 {
script:
"""
echo ${params.test2_param}
"""
}

test1.nf:

include {test2} from './test2.nf'
params {
    test1_param: String = "test"
}
process test1 {
script:
"""
echo ${params.test1_param}
"""
}

workflow {
main:
test1()
}

Then setting test1_param:

nextflow run test1.nf --test1_param "hi"

 N E X T F L O W   ~  version 26.02.0-edge

Launching `test1.nf` [hungry_stone] revision: 39af0968aa

Parameter `test1_param` was specified on the command line or params file but is not declared in the script or config

but also neither for test2_param:

nextflow run test1.nf --test2_param "hi"

 N E X T F L O W   ~  version 26.02.0-edge

Launching `test1.nf` [big_raman] revision: 39af0968aa

Parameter `test2_param` was specified on the command line or params file but is not declared in the script or config

Environment

  • Nextflow version: version 26.02.0

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions