Skip to content

Commit da407f8

Browse files
authored
Merge pull request #345 from jfy133/wrong_nf_ver_fix
Fix NF trying to run when old version of nextflow
2 parents 66a432b + a51cb06 commit da407f8

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
3636
* [#327](https://github.com/nf-core/eager/pull/327) - Speed up strip_input_fastq process and make it more robust
3737
* [#342](https://github.com/nf-core/eager/pull/342) - Updated to match nf-core tools 1.8 linting guidelines
3838
* [#339](https://github.com/nf-core/eager/issues/339) - Converted unnecessary zcat + gzip to just cat for a performance boost
39+
* [#344](https://github.com/nf-core/eager/issues/344) - Fixed pipeline still trying to run when using old nextflow version
3940

4041
### `Dependencies`
4142

main.nf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,13 @@ where_are_my_files = file("$baseDir/assets/where_are_my_files.txt")
235235
* SANITY CHECKING
236236
*/
237237

238+
// NF version check! Will replace with manifest system once allowed by nf-core/tools
239+
240+
if( !nextflow.version.matches('>=19.10.0') ) {
241+
println "This workflow requires Nextflow version 19.10.0 or greater -- You are running version $nextflow.version"
242+
exit 1
243+
}
244+
238245
// Validate inputs
239246
if ( params.fasta.isEmpty () ){
240247
exit 1, "Please specify --fasta with the path to your reference"

0 commit comments

Comments
 (0)