Closed unindented closed 2 years ago
Try running cargo update
? The latest version of ravif is 0.8.7.
Oops that was it. Sorry!
The incompatible version is still specified in the published lock file:
$ curl -s 'https://static.crates.io/crates/cavif/cavif-1.3.1.crate' | tar -xzO 'cavif-1.3.1/Cargo.lock' | grep -A1 'name = "ravif"'
name = "ravif"
version = "0.8.6"
Have you considered adding a lock file under version control? It should help with issues like #25, #45, #46, etc. and is generally recommended:
If you’re building an [...] command-line tool or an application [...], check
Cargo.lock
into git.
Lock file under version control would not help. It could only make it worse by preventing upgrades. The default cargo behavior is to pick the latest version. so lock files only stop things from being upgraded.
The problematic lock file is in the published crate, so even upgraded lock file in source control would not help. Either way it needs a new release.
I'm getting this error when running
cargo install cavif
: