Issue for "wrangler generate" when creating from GitHub project that has no master
mrbm opened this issue · 3 comments
Was attempting to use wrangler 1.15 rc2 to generate the project with an m1 MacBook where I modified the wrangler compile to use use the binary supplied for cargo-generate (fix described here: cloudflare/wrangler-legacy#1813 )
I try to following:
wrangler generate myproject-app https://github.com/cloudflare/workers-chat-demo
And I get the following error:
🔧 Creating project called delivery-websocket
...
Error: ⛔ Git Error: failed to find branch master
Error: tried running command:
/Users/username/.cargo/bin/cargo-generate generate --git https://github.com/cloudflare/workers-chat-demo --name delivery-websocket --force
exited with exit code: 1
Just to make it smoother for new people, would the solution be to add a master branch?
@xortive does wrangler generate
only work with a branch named "master"? And would this repo even be usable as a template if it did have a master branch?
currently, that is the case. We have a PR open to add support for other default branch names.
This repo would be usable as a template, so we should just change the branch name to master in the meantime
Ok, changed the primary branch to be named master
for now. Thanks!