UpliftGames / wally

Wally is a modern package manager for Roblox projects inspired by Cargo
https://wally.run
Mozilla Public License 2.0
316 stars 102 forks source link

(Bug) (Windows) `wally install` fails with `error loading known-hosts: ; class-Ssh (23)` #190

Open zachshattuck opened 3 hours ago

zachshattuck commented 3 hours ago

Overview

Hey all, I'm fairly new to Roblox development and am setting up a basic Aftman/Rojo/Wally project. When trying to run wally install after adding a package to the .toml file, I am given the following error message:

> wally install
Error cloning Git repository https://github.com/UpliftGames/wally-index

Caused by:
    error loading known_hosts: ; class=Ssh (23)

My known_hosts file exists in the standard location (~/.ssh/known_hosts) and I am able to clone UpliftGames/wally-index via SSH normally.

After some digging, it seems like it's likely related to this known issue in git2-rs versions 0.16 and below, - classic Windows pathname weirdness. I see that the current version of wally uses git2@0.16.2. It's possible that just updating to v0.17.0 will fix this.

Any help would be appreciated!

More information

aftman 0.3.0 Rojo 7.4.4 wally 0.3.2 Windows 11 Home v10.0.22631 Build 22631

wally.toml:

[package]
name = "zdogs/roblox-game-1"
version = "0.1.0"
registry = "https://github.com/UpliftGames/wally-index"
realm = "shared"

[dependencies]
React = "jsdotlua/react@17.0.0"
zachshattuck commented 2 hours ago

Just an update - as a workaround, removing a line in my ~/.gitconfig that rewrites HTTPS to SSH does fix this issue and everything installs correctly.

I did a custom local build of wally that uses git2@0.19.0 and it fixes the original error, but presents a new one:

> ..\wally\target\release\wally.exe install
[INFO ] Updating package index git@github.com:UpliftGames/wally-index...
could not update package index

Caused by:
    0: could not fetch Git repository
    1: no authentication available