Skip to content

Commit ea3dc9a

Browse files
committed
Restore def keywords in Groovy script blocks to maintain upstream parity
1 parent 946169d commit ea3dc9a

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

modules/nf-core/islandpath/main.nf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ process ISLANDPATH {
1919
task.ext.when == null || task.ext.when
2020

2121
script:
22-
args = task.ext.args ?: ''
23-
prefix = task.ext.prefix ?: "${meta.id}"
22+
def args = task.ext.args ?: ''
23+
def prefix = task.ext.prefix ?: "${meta.id}"
2424
// WARN: Version information not provided by tool on CLI. Please update this string when bumping container versions.
25-
VERSION = '1.0.6'
25+
def VERSION = '1.0.6'
2626
"""
2727
islandpath \\
2828
$genome \\
@@ -32,7 +32,7 @@ process ISLANDPATH {
3232
"""
3333

3434
stub:
35-
prefix = task.ext.prefix ?: "${meta.id}"
35+
def prefix = task.ext.prefix ?: "${meta.id}"
3636
"""
3737
touch ${prefix}.gff
3838
touch Dimob.log

modules/nf-core/islandpath/meta.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ output:
5959
- '"1.0.6"':
6060
type: string
6161
description: The expression to obtain the version of the tool
62+
1.0.6:
63+
type: string
64+
description: The expression to obtain the version of the tool
6265
topics:
6366
versions:
6467
- - ${task.process}:
@@ -70,6 +73,9 @@ topics:
7073
- '"1.0.6"':
7174
type: string
7275
description: The expression to obtain the version of the tool
76+
1.0.6:
77+
type: string
78+
description: The expression to obtain the version of the tool
7379
authors:
7480
- "@jvfe"
7581
maintainers:

0 commit comments

Comments
 (0)