Skip to content

Commit

Permalink
🎨 style: simplify nextflow version instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kenibrewer committed Oct 28, 2024
1 parent 9a68ec3 commit f01455d
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions docs/hello_nextflow/09_hello_nf-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,28 +134,14 @@ Lets' try it!
nextflow run nf-core/demo -profile docker,test --outdir results
```

Annoyingly, we get the following output:
!!! hint "Changing nextflow version"

```console title="Output"
N E X T F L O W ~ version 24.02.0-edge

┃ Launching `https://github.com/nf-core/demo` [serene_stallman] DSL2 - revision: 04060b4644 [master]

Downloading plugin [email protected]
Nextflow version 24.02.0-edge does not match workflow required version: >=24.04.2
```

Apparently we are using a slightly older version of Nextflow than what the workflow requires.

This is annoying because we might not want to update Nextflow without checking that the update doesn't affect our current work. However, Nextflow makes it up to us by letting us request a specific version on a one-time basis!

You just have to add `NXF_VER=<version>` to the start of your command, like this:

```bash
NXF_VER=24.09.2-edge nextflow run nf-core/demo -profile docker,test --outdir results
```
Depending on the nextflow version you have installed, this command might fail due to a version mismatch.
If that happens, you can temporarily run the pipeline with a different version than you have installed by adding NXF_VER=<version> to the start of your command as shown below:

And boom, that gets us past the version mismatch without committing us to any big changes.
```bash
NXF_VER=24.09.2-edge nextflow run nf-core/demo -profile docker,test --outdir results
```

Here's the console output from the pipeline:

Expand Down

0 comments on commit f01455d

Please sign in to comment.