gyro icon indicating copy to clipboard operation
gyro copied to clipboard

Cannot install from GitHub source with 0.7.0

Open rrthomas opened this issue 1 year ago • 4 comments

Using zig master and gyro 0.7.0 release:

$ gyro add --src github Hejsil/clap
error: remote authentication required but no callback set

I don't understand why I'd need authentication; sorry if I've done something stupid!

rrthomas avatar Jul 21 '22 23:07 rrthomas

does your git config use ssh by default? I haven't gotten around to setting the callback for ssh, so that might be what's missing here

mattnite avatar Jul 22 '22 01:07 mattnite

Thanks for getting back to me! I don't think my git config uses ssh by default; I have the following for GitHub, to stop getting error messages for old checkouts now that GitHub stopped supporting plain git protocol:

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

Just to make sure I temporarily removed my ~/.gitconfig, but I get the same error.

rrthomas avatar Jul 22 '22 07:07 rrthomas

hmm okay that's very odd, I've got another gyro bug to work on this weekend so I'll take a look at this too

mattnite avatar Jul 22 '22 16:07 mattnite

I experience the exact same issue.

[url "[email protected]:"]
	insteadOf = https://github.com/

My ssh config:

Host github.com
  HostName github.com
  IdentityFile ~/.ssh/github_rsa
  IdentitiesOnly yes

I added the key to id_rsa as well... Just in case. Unfortunately, without a positive result.


edit: I was able to mitigate the issue by removing the lines entirely from my gitconfig:

[url "[email protected]:"]
	insteadOf = https://github.com/

voigt avatar Aug 09 '22 19:08 voigt