-
Notifications
You must be signed in to change notification settings - Fork 638
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
Main branch not recognised when executing an online workflow #3593
Main branch not recognised when executing an online workflow #3593
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. |
pinging this one back as I think it should be discussed - should be a quick fix, if approved for action |
Basically the AssetManager should be modified to accept both nextflow/modules/nextflow/src/main/groovy/nextflow/scm/AssetManager.groovy Lines 911 to 915 in fe5bea9
|
is there a way to know what is the default branch of a repo? |
The default branch concept do not exists on Git, it is a provider concept. I know that using Github API you can check which is the default branch. |
Indeed https://stackoverflow.com/a/16501903/395921. Very likely it's available also on BitBucket and GitLab |
This just came up again, @BioWilko was asking if it was the case. I had totally forgotten about this issue and assured him that We're hoping to move to using Is it solved by #4659? |
Hey Phil, yep, at the moment any Nextflow git repo whose default branch is not manifest {
..
name = 'hello world'
description = 'Toy pipeline for simple Nextflow tests'
homePage = ' ... '
..
defaultBranch = 'main'
..
} The most developed open PR to handle multiple git revisions is #5089. |
Possible approach to using |
Signed-off-by: Tom Sellman <[email protected]>
https://github.com/nextflow-io/socks now has default branch |
Smell bad 😆 |
Signed-off-by: Tom Sellman <[email protected]>
Signed-off-by: Tom Sellman <[email protected]>
…5375) Signed-off-by: Tom Sellman <[email protected]> Signed-off-by: Paolo Di Tommaso <[email protected]> Co-authored-by: Paolo Di Tommaso <[email protected]>
Resolved by #5375 |
…io#3593) (nextflow-io#5375) Signed-off-by: Tom Sellman <[email protected]> Signed-off-by: Paolo Di Tommaso <[email protected]> Co-authored-by: Paolo Di Tommaso <[email protected]>
I have a github repo whose primary branch is called
main
instead ofmaster
, which is becoming increasingly common.Nextflow asks me to specify the branch with
-r
:All good with
-r
:I suggest to enable Nextflow to look for both
master
andmain
branches.The text was updated successfully, but these errors were encountered: