Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Using cargo generate as described in the game of life example not working #52

Description

@bravecorvus

Describe the Bug

I was following the example code at https://rustwasm.github.io/docs/book/game-of-life/setup.html.

I was able to install cargo install cargo-generate without a problem, and also have the latest LTS version of NPM. (Also, did a rustup update this morning to update my stable installation of rustc and cargo.)

However, when I run cargo generate --git https://www.github.com/rustwasm/wasm-pack-template and name my project wasm-game-of-life, it fails to clone with the error ⛔ Git Error: failed to clone into: /Users/andrewlee/Documents/Projects/Personal/Rust/wasm-game-of-life4g21l6

Steps to Reproduce

  1. cargo install cargo-generate
  2. cargo generate --git https://www.github.com/rustwasm/wasm-pack-template
  3. Name project

If applicable, add a link to a test case (as a zip file or link to a repository we can clone).

Expected Behavior

Not sure but I assume it should have set up a nice webasm project for me.

Actual Behavior

⛔ Git Error: failed to clone into: /Users/andrewlee/Documents/Projects/Personal/Rust/wasm-game-of-life4g21l6

If applicable, add screenshots to help explain your problem.

img

Additional Context

OS: macOS 10.14.5
cargo version: cargo 1.35.0 (6f3e9c367 2019-04-04)
rustc version: rustc 1.35.0 (3c235d560 2019-05-20)
npm version: 6.4.1
node version: v10.15.3
git version: git version 2.21.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions