Open dsully opened 1 year ago
That's for a git package, what's your ~/.cargo/.crates.toml
?
What if you export CARGO_NET_GIT_FETCH_WITH_CLI=a=true
?
That works. config.toml
is:
# Use the new sparse registry.
[registries.crates-io]
protocol = "sparse"
Does it also happen without -g, and if not, what's your .crates.toml
?
"cloudflare-dns 0.0.1 (git+git+ssh://git@github.com/dsully/zoned#8cd2481c664b3dc49929272ff23cb6d61a78995e)" = ["cloudflare-dns-updater"]
Is the line you're looking for from .crates.toml
I'm not calling cargo-install-update
directly, but rather from topgrade
. It is passing --git
:
funnily enough, I get:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { code: -1, klass: 23, message: "error loading known_hosts: " }', src\ops\mod.rs:496:149
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
on win32 and
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { code: -17, klass: 23, message: "invalid or unknown remote ssh hostkey" }', src/ops/mod.rs:496:149
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
under linux. or i did the first few times before i got throttled. idk, looks like libgit2 URL parsing bull shit. set net.git-fetch-with-cli = true
for now if running git works
And now my repro says
$ target/debug/cargo-install-update install-update -lag
Polling registry 'https://index.crates.io/'.............
Package Installed Latest Needs update
b3sum v1.3.1 v1.3.3 Yes
cargo-bloat v0.11.0 v0.11.1 Yes
cargo-deb v1.35.0 v1.43.1 Yes
checksums v0.6.0 v0.9.1 Yes
hyperfine v1.14.0 v1.16.1 Yes
termimage v1.1.0 v1.2.0 Yes
xargo v0.3.24 v0.3.26 Yes
zoxide v0.8.3 v0.9.1 Yes
cargo-tree v0.29.0 v0.29.0 No
gen-epub-book v2.3.2 v2.3.2 No
pijul v0.12.2 v0.12.2 (v1.0.0-beta.5 available) No
pixelmatch v0.1.0 v0.1.0 No
treesize v0.5.0 v0.5.0 No
[src/ops/mod.rs:500] "aaa" = "aaa"
[src/ops/mod.rs:516] &self.url = "git+ssh://git@github.com/dsully/zoned"
[src/ops/mod.rs:527] &self.url = "git+ssh://git@github.com/dsully/zoned"
[src/ops/mod.rs:527] &clone_dir = "/tmp/cargo-update/cloudflare-dns"
[src/ops/mod.rs:520] a = "git+ssh://git@github.com/dsully/zoned"
[src/ops/mod.rs:520] b = Some(
"git",
)
[src/ops/mod.rs:520] c = SSH_KEY | SSH_MEMORY | SSH_CUSTOM
[src/ops/mod.rs:528] GitError::last_error(0) = Some(
Error {
code: 0,
klass: 0,
message: "an unknown git error occurred",
},
)
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { code: -1, klass: 0, message: "error authenticating: no auth sock variable; class=Ssh (23): failed to authenticate when downloading repository git+ssh://git@github.com/dsully/zoned (tried ssh-agent, but none of the following usernames worked: \"git\")" }', src/ops/mod.rs:1469:39
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
so idk
I'm getting a failure when using
cargo-update
, which has worked fine until recently:This is repeatable. I've tried removing github.com from my
.ssh/known_hosts
just in case.