Skip to content

Remove dsl1 and deprecated code#3344

Closed
bentsherman wants to merge 1 commit intomasterfrom
ben/remove-dsl1-and-deprecations
Closed

Remove dsl1 and deprecated code#3344
bentsherman wants to merge 1 commit intomasterfrom
ben/remove-dsl1-and-deprecations

Conversation

@bentsherman
Copy link
Copy Markdown
Member

This PR removes the following:

  • DSL1 code
  • Deprecated channel factories, operators, and other methods available to Nextflow scripts
  • Some deprecated internal code

I tried to keep the core pieces of the DSL version checker, in case we need it in the future. So the -dsl1 and -dsl2 command line args and the nextflow.enable.dsl script variables are still accepted for backwards compatibility, but they are ignored, and trying to enable DSL1 will cause an error.

Lots of tests are failing, so I still need to go through them, but I wanted to go ahead and show what all I plan to remove. In general, it looks like a lot of unit tests depend on DSL1 or otherwise deprecated functionality, so hopefully this PR when it's ready will make our test suite much more robust.

}
}
else if( (varX=isVariableX(stm.expression)) && (varX.name=='stdin' || varX.name=='stdout') && NF.isDsl2() ) {
else if( (varX=isVariableX(stm.expression)) && (varX.name=='stdin' || varX.name=='stdout') ) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AssignmentInConditional: Assignment used as conditional value, which always results in true. Use the == operator instead


ℹ️ Learn about @sonatype-lift commands

You can reply with the following commands. For example, reply with @sonatype-lift ignoreall to leave out all findings.

Command Usage
@sonatype-lift ignore Leave out the above finding from this PR
@sonatype-lift ignoreall Leave out all the existing findings from this PR
@sonatype-lift exclude <file|issue|path|tool> Exclude specified file|issue|path|tool from Lift findings by updating your config.toml file

Note: When talking to LiftBot, you need to refresh the page to see its response.
Click here to add LiftBot to another repo.


Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]

@ewels
Copy link
Copy Markdown
Member

ewels commented Nov 21, 2022

trying to enable DSL1 will cause an error.

A nice error, I hope? 😬

@bentsherman
Copy link
Copy Markdown
Member Author

ERROR: You have an error in your code. Tip: fix the error.

@pditommaso pditommaso force-pushed the master branch 2 times, most recently from 2c461f8 to 23432f3 Compare November 24, 2022 19:15
@pditommaso pditommaso force-pushed the master branch 2 times, most recently from e2b4a93 to f32ea0b Compare December 8, 2022 15:16
@pditommaso pditommaso force-pushed the master branch 2 times, most recently from cefb067 to e523afd Compare December 22, 2022 20:43
@pditommaso
Copy link
Copy Markdown
Member

Support for DSL1 have been partially removed via 5d290a4, 14257d4, fa400d5, f664af4 and 23432f3.

Still remains some DSL1-specific code that can be better kept to provide a more descriptive error message for users that may still be transitioning from DSL1 to DSL2

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants