Closed roland-5 closed 3 months ago
Funny enough, I was able to install iamb-git
from Arch Linux AUR now, without problem.
That error looks like what I think you would hit without using --locked
. What command did you use to update?
Guilty, your honor. That was the culprit. I used cargo install-update -a
.
Sorry to message a closed issue but I ran into this too. Could someone explain to how to resolve this? I'm pretty new to rust and I don't understand cargo well I usually use cargo install-update -a
for everything.
@konomikitten just try type cargo install iamb --locked
in terminal.
If you want install application you use cargo install app_name
and the same command you use for updating it. So cargo install-update -a
is equivalent of cargo install app_name
. But if application was build with specific dependencies, then updating will crash when compiling (like here), because cargo downloads the newest dependencies it finds in crates.io
repository.
There are two options, if cargo-update
is at play (from https://github.com/nabijaczleweli/cargo-update/issues/191):
cargo install-update-config --enforce-lock iamb
and it will create ~/.cargo/.install_config.toml
file with saved information for cargo-update
to always update iamb
with --locked
CARGO_INSTALL_OPTS=--locked
.@roland-5 thank you so much.
If I try to update from 0.0.9 to 0.0.10 I got this:
rustc -vV