Closed benprew closed 2 years ago
Some old rust compiler? rustc --version
?
This seems to do with installing it via cargo install
; it is resolving the clap
dependency to 3.1.0
:
Compiling clap v3.1.0
despite the Cargo.toml specifying a hard version:
# Default features disabled so they can be explicitly opted into
rdedup-lib = { version = "3.2.0", path = "lib", default-features = false }
clap = "=3.0.0-beta.2"
log = "0.4.11"
hex = "0.4.2"
Looks like by default cargo install
will ignore a Cargo.lock
:
By default, the Cargo.lock file that is included with the package will be ignored. This means that Cargo will recompute which versions of dependencies to use, possibly using newer versions that have been released since the package was published. The --locked flag can be used to force Cargo to use the packaged Cargo.lock file if it is available.
cargo install --locked
works for me here (I typically don't install it via cargo install
, so this is new to me).
Generally, we could probably update to the non-beta clap
, though (I assume all errors are stemming from this).
(Edit: I don't personally have time immediately to do the upgrade; I will open an issue instead)
Thanks for getting back to me so quickly!
I'm using the latest version of rust (1.58.1) according to https://www.rust-lang.org/.
running cargo install --locked rdedup
fixed it for me. I made a PR #207 to update the README with the fixed command, let me know if it's not right.
Thanks!
Thanks for writing rdedup, it looks really cool!
I don't have much experience with rust, but I'm having trouble building rdedup and I was hoping you could help. Let me know if you need more info or would like me to run any other commands.
Here's the build commands:
And the build log: