Skip to content

Commit 6a81c01

Browse files
authored
Fix dynamic publish path (#5809)
Signed-off-by: Ben Sherman <bentshermann@gmail.com>
1 parent 18b6934 commit 6a81c01

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

modules/nextflow/src/main/groovy/nextflow/extension/PublishOp.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ class PublishOp {
138138

139139
// if the resolved publish path is a string, resolve it
140140
// against the base output directory
141-
if( resolvedPath instanceof String )
142-
return outputDir.resolve(resolvedPath)
141+
if( resolvedPath instanceof CharSequence )
142+
return outputDir.resolve(resolvedPath.toString())
143143

144144
// if the resolved publish path is a closure, use the closure
145145
// to transform each published file and resolve it against

modules/nextflow/src/test/groovy/nextflow/script/OutputDslTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class OutputDslTest extends Specification {
5656

5757
when:
5858
dsl.target('bar') {
59-
path('barbar')
59+
path { v -> "${'barbar'}" }
6060
index {
6161
path 'index.csv'
6262
}

0 commit comments

Comments
 (0)