Skip to content

Commit

Permalink
Adios 👋🥲
Browse files Browse the repository at this point in the history
Signed-off-by: Paolo Di Tommaso <[email protected]>
  • Loading branch information
pditommaso committed Nov 24, 2022
1 parent 877a58a commit 2c461f8
Show file tree
Hide file tree
Showing 94 changed files with 477 additions and 1,684 deletions.
9 changes: 7 additions & 2 deletions modules/nextflow/src/main/groovy/nextflow/NextflowMeta.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import static nextflow.extension.Bolts.DATETIME_FORMAT
@EqualsAndHashCode
class NextflowMeta {

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"
private static final Pattern DSL_DECLARATION = ~/(?m)^\s*(nextflow\.(preview|enable)\.dsl\s*=\s*(\d))\s*(;?\s*)?(;?\/{2}.*)?$/

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

void setDsl( float num ) {
if( num != 2 && num != 1 )
if( num == 1 )
throw new IllegalArgumentException(DSL1_EOL_MESSAGE)
if( num != 2 )
throw new IllegalArgumentException("Not a valid DSL version number: $num")
if( num == 2 && !ignoreWarnDsl2 )
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"
Expand Down Expand Up @@ -145,7 +148,9 @@ class NextflowMeta {
}

void enableDsl(String value) {
if( value !in ['1','2'] ) {
if( value == '1' )
throw new AbortOperationException(DSL1_EOL_MESSAGE)
if( value != '2' ) {
throw new AbortOperationException("Invalid Nextflow DSL value: $value")
}
this.enable.dsl = value=='1' ? 1f : 2f
Expand Down
50 changes: 0 additions & 50 deletions tests/ampa.nf

This file was deleted.

66 changes: 0 additions & 66 deletions tests/basic.nf

This file was deleted.

73 changes: 0 additions & 73 deletions tests/blast-parallel.nf

This file was deleted.

52 changes: 0 additions & 52 deletions tests/blast.nf

This file was deleted.

35 changes: 0 additions & 35 deletions tests/buffer.nf

This file was deleted.

17 changes: 0 additions & 17 deletions tests/checks/ampa.nf/.checks

This file was deleted.

15 changes: 0 additions & 15 deletions tests/checks/ampa.nf/.expected

This file was deleted.

19 changes: 0 additions & 19 deletions tests/checks/basic.nf/.checks

This file was deleted.

15 changes: 0 additions & 15 deletions tests/checks/basic.nf/.expected

This file was deleted.

Loading

0 comments on commit 2c461f8

Please sign in to comment.