Description
I have a github repo whose primary branch is called main
instead of master
, which is becoming increasingly common.
Nextflow asks me to specify the branch with -r
:
$ nextflow run marcodelapierre/toy-cowsay-nf -profile condawave
N E X T F L O W ~ version 22.12.0-edge
Pulling marcodelapierre/toy-cowsay-nf ...
downloaded from https://github.com/marcodelapierre/toy-cowsay-nf.git
Project `marcodelapierre/toy-cowsay-nf` is currently stickied on revision: main -- you need to explicitly specify a revision with the option `-r` in order to use it
All good with -r
:
$ nextflow run -r main marcodelapierre/toy-cowsay-nf -profile condawave
N E X T F L O W ~ version 22.12.0-edge
Launching `https://github.com/marcodelapierre/toy-cowsay-nf` [cranky_hypatia] DSL2 - revision: cd804ac170 [main]
executor > local (8)
[b7/d27846] process > sayHello (1) [100%] 4 of 4 ✔
[35/cabd24] process > cowSay (4) [100%] 4 of 4 ✔
I suggest to enable Nextflow to look for both master
and main
branches.