Can't update, thread main panicked
satvikpendem opened this issue · 2 comments
satvikpendem commented
$ RUST_BACKTRACE=full cargo install-update -a
Updating registry 'https://github.com/rust-lang/crates.io-index'
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "package erdtree not found"', /home/satvik/.cargo/registry/src/github.com-1ecc6299db9ec823/cargo-update-11.0.0/src/ops/mod.rs:216:149
stack backtrace:
0: 0x55b8f258ea2f - <unknown>
1: 0x55b8f24ca99e - <unknown>
2: 0x55b8f2564102 - <unknown>
3: 0x55b8f258f823 - <unknown>
4: 0x55b8f258ffb8 - <unknown>
5: 0x55b8f258fc32 - <unknown>
6: 0x55b8f258fb9e - <unknown>
7: 0x55b8f258fb71 - <unknown>
8: 0x55b8f24c8862 - <unknown>
9: 0x55b8f24cc3b2 - <unknown>
10: 0x55b8f24424fd - <unknown>
11: 0x55b8f2431796 - <unknown>
12: 0x55b8f2427fd3 - <unknown>
13: 0x55b8f2428439 - <unknown>
14: 0x55b8f2563c2f - <unknown>
15: 0x55b8f2444404 - <unknown>
16: 0x7f7398aa1d90 - <unknown>
17: 0x7f7398aa1e40 - __libc_start_main
18: 0x55b8f2421c75 - <unknown>
19: 0x0 - <unknown>
However, if I cargo binstall erdtree --force
:
$ cargo binstall --force erdtree
17:49:41 [INFO] Resolving package: 'erdtree'
17:53:36 [WARN] Error while checking fetcher invalid url: could not HEAD https://github.com/solidiquis/erdtree/releases/download/1.7.1/erdtree-x86_64-unknown-linux-gnu-1.7.1.tzst
17:53:37 [WARN] The package will be downloaded from third-party source QuickInstall
17:53:37 [INFO] This will install the following binaries:
17:53:37 [INFO] - et (et -> /home/satvik/.cargo/bin/et-v1.7.1)
17:53:37 [INFO] And create (or update) the following symlinks:
17:53:37 [INFO] - et (/home/satvik/.cargo/bin/et -> et-v1.7.1)
Do you wish to continue? yes/[no]
? yes
17:55:02 [INFO] Installing binaries...
17:55:02 [INFO] Done in 320.591253312s
So maybe we could see if cargo binstall could use the alternative QuickInstall method in order to resolve URLs that aren't found.
nabijaczleweli commented
Can't reproduce this:
$ target/debug/cargo-install-update install-update -li erdtree
Polling registry 'https://index.crates.io/'.
Package Installed Latest Needs update
erdtree No v1.7.1 Yes
$ CARGO_REGISTRIES_CRATES_IO_PROTOCOL=git target/debug/cargo-install-update install-update -li erdtree
Updating registry 'https://github.com/rust-lang/crates.io-index'
Package Installed Latest Needs update
erdtree No v1.7.1 Yes
satvikpendem commented
I cleared the cargo cache and it works now, strange.