Skip to content

Commit 23432f3

Browse files
committed
Adios DSL1 πŸ‘‹πŸ₯²
Signed-off-by: Paolo Di Tommaso <[email protected]>
1 parent 877a58a commit 23432f3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+477
-1684
lines changed

β€Žmodules/nextflow/src/main/groovy/nextflow/NextflowMeta.groovyβ€Ž

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import static nextflow.extension.Bolts.DATETIME_FORMAT
2323
@EqualsAndHashCode
2424
class NextflowMeta {
2525

26+
private static final String DSL1_EOL_MESSAGE = "Nextflow DSL1 is not supported anymore -- Please update your script to DSL2 or use Nextflow 22.10.x or early version"
2627
private static final Pattern DSL_DECLARATION = ~/(?m)^\s*(nextflow\.(preview|enable)\.dsl\s*=\s*(\d))\s*(;?\s*)?(;?\/{2}.*)?$/
2728

2829
private static final Pattern DSL1_INPUT = ~/(?m)input:\s*(tuple|file|path|val|env|stdin)\b.*\s.*\bfrom\b.+$/
@@ -44,7 +45,9 @@ class NextflowMeta {
4445
boolean recursion
4546

4647
void setDsl( float num ) {
47-
if( num != 2 && num != 1 )
48+
if( num == 1 )
49+
throw new IllegalArgumentException(DSL1_EOL_MESSAGE)
50+
if( num != 2 )
4851
throw new IllegalArgumentException("Not a valid DSL version number: $num")
4952
if( num == 2 && !ignoreWarnDsl2 )
5053
log.warn1 "DSL 2 PREVIEW MODE IS DEPRECATED - USE THE STABLE VERSION INSTEAD -- Read more at https://www.nextflow.io/docs/latest/dsl2.html#dsl2-migration-notes"
@@ -145,7 +148,9 @@ class NextflowMeta {
145148
}
146149

147150
void enableDsl(String value) {
148-
if( value !in ['1','2'] ) {
151+
if( value == '1' )
152+
throw new AbortOperationException(DSL1_EOL_MESSAGE)
153+
if( value != '2' ) {
149154
throw new AbortOperationException("Invalid Nextflow DSL value: $value")
150155
}
151156
this.enable.dsl = value=='1' ? 1f : 2f

β€Žtests/ampa.nfβ€Ž

Lines changed: 0 additions & 50 deletions
This file was deleted.

β€Žtests/basic.nfβ€Ž

Lines changed: 0 additions & 66 deletions
This file was deleted.

β€Žtests/blast-parallel.nfβ€Ž

Lines changed: 0 additions & 73 deletions
This file was deleted.

β€Žtests/blast.nfβ€Ž

Lines changed: 0 additions & 52 deletions
This file was deleted.

β€Žtests/buffer.nfβ€Ž

Lines changed: 0 additions & 35 deletions
This file was deleted.

β€Žtests/checks/ampa.nf/.checksβ€Ž

Lines changed: 0 additions & 17 deletions
This file was deleted.

β€Žtests/checks/ampa.nf/.expectedβ€Ž

Lines changed: 0 additions & 15 deletions
This file was deleted.

β€Žtests/checks/basic.nf/.checksβ€Ž

Lines changed: 0 additions & 19 deletions
This file was deleted.

β€Žtests/checks/basic.nf/.expectedβ€Ž

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
Β (0)