nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.22k stars 42 forks source link

fallback to cargo-install fail #270

Closed NobodyXu closed 1 month ago

NobodyXu commented 1 month ago

since I was getting this error:


$ cargo install-update atuin
Polling registry 'https://index.crates.io/'.

Package Installed Latest Needs update atuin v18.2.0 v18.3.0 Yes

Updating atuin INFO resolve: Resolving package: 'atuin' WARN Failed to send quickinstall report for package atuin-18.3.0-aarch64-unknown-linux-musl: Failed to download from remote: could not HEAD https://warehouse-clerk-tmp.vercel.app/api/crate/atuin-18.3.0-aarch64-unknown-linux-musl.tar.gz: HTTP status client error (402 Payment Required) for url (https://warehouse-clerk-tmp.vercel.app/api/crate/atuin-18.3.0-aarch64-unknown-linux-musl.tar.gz) WARN The package atuin v18.3.0 will be installed from source (with cargo) Updating crates.io index error: could not find atuin in registry crates-io with version =18.3.0 ERROR Cargo errored! ExitStatus(unix_wait_status(25856)) ERROR Fatal error: x For crate atuin: subprocess /usr/bin/cargo install atuin --version 18.3.0 --force --root /home/pi/.cargo errored with exit status: 101 `-> subprocess /usr/bin/cargo install atuin --version 18.3.0 --force --root /home/pi/.cargo errored with exit status: 101

Updated 0 packages. Failed to update atuin.



_Originally posted by @Abhinickz in https://github.com/nabijaczleweli/cargo-update/issues/269#issuecomment-2299004730_
NobodyXu commented 1 month ago

Inthink this might be a bug, we need to strip = before passing version requirements to cargo-install

NobodyXu commented 1 month ago

sorry wrong place, created issue in cargo-bins/cargo-binstall#1891