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

"wrangler generate my-app https://github.com/cloudflare/worker-template" fails with "Git Error: failed to clone into: ..." #487

Closed
gr2m opened this issue Dec 14, 2020 · 4 comments

Comments

@gr2m
Copy link

gr2m commented Dec 14, 2020

sorry if this is not the right place to report this problem, I'm not sure where the problem lies and I don't know how to further debug it.

I followed the docs and did the following

npm install -g @cloudflare/wrangler
wrangler generate my-app https://github.com/cloudflare/worker-template

But it failed with the following error:

🔧   Creating project called `my-app`...
Error: ⛔   Git Error: failed to clone into: /Users/gregor/Projects/cloudflare-workers/my-appIrjVg4                                                                                         
Error: tried running command:
/Users/gregor/Library/Caches/.wrangler/cargo-generate-0.5.0/cargo-generate generate --git https://github.com/cloudflare/worker-template --name my-app --force
exited with exit code: 1
@gr2m
Copy link
Author

gr2m commented Dec 14, 2020

$ node -v
v14.15.1
$ npm -v
6.14.8

@gr2m
Copy link
Author

gr2m commented Dec 16, 2020

same problem as cloudflare/wrangler-legacy#1168. This workaround worked for me: cargo-generate/cargo-generate#168 (comment)

the cause of the problem seems to be an upstream issue which maenwhile has been resolved: cargo-generate/cargo-generate#168

@gr2m gr2m closed this as completed Dec 16, 2020
@volkanunsal
Copy link

I'm still experiencing this issue.

Node v15, npm v7.

@volkanunsal
Copy link

Solved it with this: rust-lang/cargo#3381 (comment)

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

2 participants