Closed zdl361 closed 8 months ago
The bug comes from the code that handles git. The solution is to manually download the esp-idf-template to the local path. Use cargo generate to read templates from a local path
git clone https://github.com/esp-rs/esp-idf-template
cargo generate --vcs none ./esp-idf-template
Which version of cargo-generate are you using (cargo generate --version
)?
Which version of cargo-generate are you using (
cargo generate --version
)?
cargo generate-generate 0.18.3
cargo generate-generate 0.18.3
That's very weird, I'm using the same version but no issues, have you tried using the whole git url: cargo generate https://github.com/esp-rs/esp-idf-template cargo
? And also, to test some other thing, can you try generating esp-template cargo generate -a esp-rs/esp-template
?
Hi @zdl361, have you tried any of the suggested solutions?
@SergioGasquez
To be honest, I don't have any idea of what can be happening, I would suggest trying any other cargo-generate template, for example: https://github.com/rust-github/template or any https://github.com/topics/cargo-generate.
Also, I might be worth to try running the command in bash.
To me, this looks more like a cargo-generate
issue.
Closing as this is the only ever reported crash with cargo-generate
and it is anyway an upstream problem.
Enhancing esp-idf-template
to work also without cargo-generate
is not an option, as an isolated crash on one developer machine with it is not enough of an evidence that we need to do such a big shift.
Ubuntu 22.04.1 x86_64 GNU/Linux I'm getting a segmentation fault when I running "cargo-generate generate esp-rs/esp-idf-template cargo" . Both the cargo-generate binary installed by "cargo install cargo-generate" and "cargo binstall cargo-generate" have segment fault and I can't fix it. How to configure esp-idf-template without cargo-generate?
shell:
GDB: