cargo-generate / cargo-generate

cargo, make me a project

Home Page:https://cargo-generate.github.io/cargo-generate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

malformed URL ''; class=Net (12)

jmmaa opened this issue · comments

commented

Describe the bug
Doesn't generate from inputs with --git flag

make sure you

  • I'm on the latest rust version rustup update
  • I'm on the latest cargo-generate version cargo install cargo-generate

To Reproduce
Steps to reproduce the behavior:

  1. cargo generate --git https://github.com/Rahix/avr-hal-template.git
  2. output it generated..
PS D:\github> cargo generate --git https://github.com/Rahix/avr-hal-template    
Error: Please check if the Git user / repository exists.

Caused by:
    malformed URL ''; class=Net (12)

Expected behavior
It should be able to normally prompt the project details

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Version: 1909
  • Build tools: msvc
  • Shell: powerShell
  • rustc --version: 1.66.0
  • cargo generate --version: 0.17.4

Additional context
The avr-hal-template author suggests to raise the issue here.

Do you have any url replace magic in your gitconfig that you can share?

something like this might cause it, in combination with passphrase protected ssh-keys that are not registered at the ssh-agent.

[url "git@github.com:"]
    insteadOf = https://github.com/
commented

Do you have any url replace magic in your gitconfig that you can share?

something like this might cause it, in combination with passphrase protected ssh-keys that are not registered at the ssh-agent.

[url "git@github.com:"]
    insteadOf = https://github.com/

I haven't really set up any of git config similar to above snippet, but I figure that it maybe because I havent installed openssl. Its working now thanks.