-
Notifications
You must be signed in to change notification settings - Fork 663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project currently is stuck on revision xxx when using -latest flag #1670
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I get this error message as well when running NEXTFLOW version 20.10.0 on our Linux HPC. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am having this issue as well. Should the default behavior in the absence of any flags not be to use the latest version of the default branch on github? Pulling a repository for the first time, these two commands:
both crash with the error:
Whereas adding the flag |
I've had this problem when pulling my own pipeline, which only has one branch and I didn't mind what I named it. Could 'main' be an okay default for pulling? Being "sticked on revision" isn't even correct English but amazingly it helped me find this issue! |
I'm running into this issue on tower.nf, with the "pull latest" option set. I suspect that @esrice is correct that it has to do with the new 'main' branch, since I only have this issue with newer repos and not any that use 'master'. |
@krokicki I looked into this more after writing that comment, and IIRC it is indeed an issue with 'master' being hard-coded into some code somewhere. I don't know enough groovy to write an elegant solution for this myself. However, I get around this in my own projects by either doing '-latest -r main' on the command line, or by adding this line to
Hope this helps! |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I am also having an issue with this. We use an enterprise instance of GitLab where the default branch is called 'main'. If make a brand-new, empty repo, only initialized with a ReadMe. That is 'commit 1'. Then I commit my 'hello world' main.nf, and this is 'commit 2'. main.nf:
If I run without specifying the revision:
Then I specify the revision with 'main' and it works:
Then I specify the revision with the commit 2 SHA and it works:
But, if I make a change to the code, take the exclamation point out, re-commit that, which is now 'commit 3' and run that with
I see that nextflow is running commit 2 and the exclamation point is still there. So, I try it with the commit 3 SHA:
I then go and delete this folder on my local machine:
re-run this:
And it works again:
And if i run again with
So, it seems there are a few things here:
Just wanted to share this troubleshooting in case it is helpful for anyone who is experiencing something similar and to stimulate any additional discussion on this topic/issue if needed. Happy to provide more information if needed. Thanks, Environment
|
trying to fix this error: nextflow-io/nextflow#1670
…related to running from github: See: nextflow-io/nextflow#1670
…related to running from github: See: nextflow-io/nextflow#1670
I'm still seeing this on version 22.10.6 build 5843 |
I believe so! has not been fixed yet! |
I can try and help improve the error message and perhaps also the documentation. Before I do so, I'd like to clarify the reasons for the behaviour. My understanding is that:
Is that correct? Is the "stickied" descriptor a Nextflow-specific term or a little-known git term? |
We are planning to solve this limitation #2870 (comment) |
Bug report
I get the error message:
Project xxx currently is sticked on revision: yyy -- you need to specify explicitly a revision with the option
-rto use it
, even though I am using the-latest
flag when runningnextflow run
.There is no reason why Nextflow would not pull the latest commit of the master branch and use it when
-r
has been used previously.Environment
The text was updated successfully, but these errors were encountered: