Skip to content
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

Plugin template references non-existent branc #6

Open
cogitaria-admin opened this issue Aug 16, 2020 · 0 comments
Open

Plugin template references non-existent branc #6

cogitaria-admin opened this issue Aug 16, 2020 · 0 comments

Comments

@cogitaria-admin
Copy link

cogitaria-admin commented Aug 16, 2020

The generated plugin project fails to compile.

===> Verifying dependencies...
===> Fetching emqx (from {git,"https://github.com/emqx/emqx",{branch,"develop"}})
===> Failed to fetch and copy dep: {git,"https://github.com/emqx/emqx",
{branch,"develop"}}

Indeed there is no "develop" branch.

Update: users must initialize a git repo (e.g., git init) and initiate a commit to get a master branch created. The template code runs git to capture the branch name (in the folder generated by the rebar template). Since there is no branch until you commit (even after git init . there is no branch) the template fails to see "master" and falls back to "develop".

Side note: those new to emq (and Erlang development) would welcome some complete end-to-end steps to generating and deploying the plugin to emq. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant