nextflow-io / nextflow

A DSL for data-driven computational pipelines
http://nextflow.io
Apache License 2.0
2.61k stars 605 forks source link

Nextflow suggests to update to an older edge release version #4809

Open mribeirodantas opened 3 months ago

mribeirodantas commented 3 months ago

Bug report

Expected behavior and actual behavior

If there is a new version of Nextflow, a suggestion should be made for update. I have had a weird behavior in which I'm on 24.02.0-edge and Nextflow is making me aware of Nextflow 24.01.0-edge being available and I should consider updating to it.

Steps to reproduce the problem

# I think I was on 24.01.0-edge before so (NXF_EDGE=1)
nextflow self-update
nextflow -v
nextflow run hello

Program output

$ nextflow -v
nextflow version 24.02.0-edge.5907
$ nextflow run hello
Nextflow 24.01.0-edge is available - Please consider updating your version to it

 N E X T F L O W   ~  version 24.02.0-edge

 ┃ Launching `https://github.com/nextflow-io/hello` [cheesy_pasteur] DSL2 - revision: 7588c46ffe [master]

executor >  local (4)
[a3/68bb4d] process > sayHello (4) [100%] 4 of 4 ✔
Ciao world!

Hello world!

Bonjour world!

Hola world!

Environment

pditommaso commented 3 months ago

It works in my computer

» nextflow run pditommaso/hello

 N E X T F L O W   ~  version 24.02.0-edge

 ┃ Launching `https://github.com/pditommaso/hello` [drunk_edison] DSL2 - revision: 5df6c0103b [master]

executor >  local (1)
[16/1520a9] sayHello | 1 of 1 ✔
mribeirodantas commented 3 months ago

Case closed 🤣

bentsherman commented 3 months ago

I noticed this issue on a previous release. I think there is some delay between the release and the web source used by the version checker, because it goes away in time. Not sure why there would be a delay though

davidecarlson commented 3 months ago

I'm seeing a slightly different but possibly related issue. The self-update function doesn't seem to be aware of the latest edge release (24.02):

$ export NXF_EDGE=1
$ nextflow -v
nextflow version 24.01.0-edge.5903
$ nextflow self-update

      N E X T F L O W
      version 24.01.0-edge build 5903
      created 05-02-2024 23:17 UTC (18:17 EDT)
      cite doi:10.1038/nbt.3820
      http://nextflow.io

Nextflow installation completed. Please note:
- the executable file `nextflow` has been created in the folder: /gpfs/software/nextflow/latest
mribeirodantas commented 3 months ago

Thanks, @bentsherman.

@davidecarlson, it's aware in my computer 😆. Yeah, it sounds like a cache issue.

davidecarlson commented 3 months ago

@mribeirodantas Thanks. I'll be patient then! :)