diff --git a/CHANGELOG.md b/CHANGELOG.md index f1e6a26cb..4e7ebcbc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. * [#327](https://github.com/nf-core/eager/pull/327) - Speed up strip_input_fastq process and make it more robust * [#342](https://github.com/nf-core/eager/pull/342) - Updated to match nf-core tools 1.8 linting guidelines * [#339](https://github.com/nf-core/eager/issues/339) - Converted unnecessary zcat + gzip to just cat for a performance boost +* [#344](https://github.com/nf-core/eager/issues/344) - Fixed pipeline still trying to run when using old nextflow version ### `Dependencies` diff --git a/main.nf b/main.nf index 057e2a759..83272b991 100644 --- a/main.nf +++ b/main.nf @@ -235,6 +235,13 @@ where_are_my_files = file("$baseDir/assets/where_are_my_files.txt") * SANITY CHECKING */ +// NF version check! Will replace with manifest system once allowed by nf-core/tools + +if( !nextflow.version.matches('>=19.10.0') ) { + println "This workflow requires Nextflow version 19.10.0 or greater -- You are running version $nextflow.version" + exit 1 +} + // Validate inputs if ( params.fasta.isEmpty () ){ exit 1, "Please specify --fasta with the path to your reference"