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

Cargo generate git authentication attempts failed #221

Closed
adrien3d opened this issue Jul 10, 2024 · 4 comments
Closed

Cargo generate git authentication attempts failed #221

adrien3d opened this issue Jul 10, 2024 · 4 comments

Comments

@adrien3d
Copy link

I've been through all steps of the https://docs.esp-rs.org/std-training.
I can successfully compile and flash example firmware.

But when I want to generate a new project, with this command:
cargo generate esp-rs/esp-idf-template cargo

I have the following error:

⚠️   Favorite `esp-rs/esp-idf-template` not found in config, using it as a git repository: https://github.com/esp-rs/esp-idf-template.git
Error: Please check if the Git user / repository exists.

Caused by:
    all authentication attempts failed
@Vollbrecht
Copy link
Collaborator

whats your cargo generate --version ?

does it work if you give it the full path actively with cargo generate --git https://github.com/esp-rs/esp-idf-template cargo

@adrien3d
Copy link
Author

I'm using v0.21.2 version, and I have the same error with specifying the full path (just the ⚠️ Favorite warning is not there).

@Vollbrecht
Copy link
Collaborator

Vollbrecht commented Jul 10, 2024

yeah the warning is non-relevant to the issue. That sounds like a strange networking problem of some sorts. You seams to be quite lucky ;D ...

0.21.2 was released just 4 hours ago. I updated to it but it still works for me. To not get you blocked a short workaround would be to just clone the template locally git clone https://github.com/esp-rs/esp-idf-template to where you want and than run cargo generate --path="<path to the clone>" cargo

@adrien3d
Copy link
Author

Thanks, it is working with this workaround.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants