Picture of Jason Chui
Problem registering plugin
by Jason Chui - Wednesday, 12 May 2021, 2:40 AM
 

I'm trying to learn how to register a plugin.

I duplicated the adapt-contrib-matching plugin, renamed it to adapt-matching-exserlan-sjs (and changed the bower.json details). The github repo is at https://github.com/adaptNYP/adapt-matching-exserlan-sjs

When I tried to register the plugin, I get the following messages:

adapt-register

? name adapt-matching-exserlan-sjs

? repository URL git://github.com/adaptNYP/adapt-matching-exserlan-sjs.git

? framework >=5

? Register now? Yes

Error: Tag/branch master does not exist

 

Can someone point out what I missed out / am doing wrong?

Thanks a lot in advance.

Picture of Oliver Foster
Re: Problem registering plugin
by Oliver Foster - Wednesday, 12 May 2021, 7:29 AM
 

You need a `master` branch in your repo. Not `main`.

Picture of Jason Chui
Re: Problem registering plugin
by Jason Chui - Thursday, 13 May 2021, 4:22 AM
 

OMG... i'm so dumb. thanks a lot!

Picture of Oliver Foster
Re: Problem registering plugin
by Oliver Foster - Thursday, 13 May 2021, 10:03 AM
 

No you're not. I think github has just changed the default branch from `master` to `main`. So it is something we need to fix.

https://www.zdnet.com/article/github-to-replace-master-with-main-starting-next-month/
https://github.com/github/renaming