Skip to content

Commit f01455d

Browse files
committed
🎨 style: simplify nextflow version instructions
1 parent 9a68ec3 commit f01455d

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

‎docs/hello_nextflow/09_hello_nf-core.md‎

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -134,28 +134,14 @@ Lets' try it!
134134
nextflow run nf-core/demo -profile docker,test --outdir results
135135
```
136136

137-
Annoyingly, we get the following output:
137+
!!! hint "Changing nextflow version"
138138

139-
```console title="Output"
140-
N E X T F L O W ~ version 24.02.0-edge
141-
142-
┃ Launching `https://github.com/nf-core/demo` [serene_stallman] DSL2 - revision: 04060b4644 [master]
143-
144-
Downloading plugin [email protected]
145-
Nextflow version 24.02.0-edge does not match workflow required version: >=24.04.2
146-
```
147-
148-
Apparently we are using a slightly older version of Nextflow than what the workflow requires.
149-
150-
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!
151-
152-
You just have to add `NXF_VER=<version>` to the start of your command, like this:
153-
154-
```bash
155-
NXF_VER=24.09.2-edge nextflow run nf-core/demo -profile docker,test --outdir results
156-
```
139+
Depending on the nextflow version you have installed, this command might fail due to a version mismatch.
140+
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:
157141

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

160146
Here's the console output from the pipeline:
161147

0 commit comments

Comments
 (0)