cargo-bins / cargo-binstall

Binary installation for rust projects
GNU General Public License v3.0
1.62k stars 60 forks source link

fallback to cargo-install fail #1891

Closed NobodyXu closed 3 months ago

NobodyXu commented 3 months 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 3 months ago

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