Narigo / keepass-diff

A CLI-tool to diff Keepass (.kdbx) files. Useful, if syncing with Dropbox or NextCloud and getting multiple files due to conflicts.
https://keepass-diff.narigo.dev/
MIT License
306 stars 28 forks source link

failed to select a version for the requirement `aesni = "^0.6"` #34

Closed Donatzsky closed 3 years ago

Donatzsky commented 3 years ago

Trying to install with RUSTFLAGS="-C target-cpu=native" cargo install keepass-diff, it fails with the following error:

error: failed to compile `keepass-diff v1.1.0`, intermediate artifacts can be found at `/tmp/cargo-installghkBKQ`

Caused by:
  failed to select a version for the requirement `aesni = "^0.6"`
  candidate versions found which didn't match: 0.99.99, 0.10.0, 0.9.0, ...
  location searched: crates.io index
  required by package `aes v0.3.2`
      ... which is depended on by `keepass v0.4.7`
      ... which is depended on by `keepass-diff v1.1.0`
lwbt commented 3 years ago

I have the same issue here on Ubuntu 18.04 and Ubuntu 21.04.

The last version I can use is 0.3.0 with:

RUSTFLAGS="-C target-cpu=native" cargo install --git https://github.com/Narigo/keepass-diff --tag 0.3.0

Can someone please look into this? I don't have that much experience with Rust.

Narigo commented 3 years ago

Thanks for reporting this @Donatzsky and @lwbt !

It looks like the aes package version 0.3.2 got yanked, which the underlying keepass library uses. You should still be able to add --locked with the command to install keepass-diff to make it possible to use that yanked package.

The proper fix would be to update aes to a newer version in the keepass dependency. Update: I've opened issue keepass-rs#40.

Narigo commented 3 years ago

I have updated the dependencies now after keepass-rs got a new release and fixed the breaking change. I'm closing this now as it should work now without the --locked flag again.

If you have time, please let me know whether it worked for you @Donatzsky and @lwbt or if there is still some issue this didn't address. Thanks!

Narigo commented 3 years ago

(Released / published version 1.1.1 for that to check!)

lwbt commented 3 years ago

Appears to be working on my Ubuntu 21.04 installation. Thanks.

Narigo commented 3 years ago

Thank you for checking! 🙂