Closed julianneswinoga closed 2 years ago
Huh, that's weird. cargo build
and also cargo build --release
work fine. Does someone know what's going on?
This is weird: Building (and even cargo run
) works fine, but using the command you specified (cargo install --path . -j8 --force
) gives me the same error. I can even cargo build
and cargo build --release
in a fresh clone. While the immediate fix from our side seems straight-forward (just do what the compiler is telling us to), this is still weird. We should probably further investigate or open an issue at clap if we don't find the issue on our part.
Ahh, I found the reason: cargo install
ignores the lockfile, and thus implicitly upgrades all dependencies. Well, that's a stupid idea, the lockfile is there for a reason.
@cameronswinoga That means you also get an immediate fix: cargo install --path . --force --locked
:)
Let's still keep this open and fix it though
@cameronswinoga That means you also get an immediate fix:
cargo install --path . --force --locked
:)
Ah, nice, I wasn't aware of that option!
Let's still keep this open and fix it though
I'll handle that, since there's a new clap option I wanted to add!
@dbrgn very strange behaviour! Is that documented as a "feature" somewhere or is it a bug in cargo
?
I assume it's a feature. If you install from crates.io (which is the default), I believe there is no lockfile being shipped with the crate. If you install from source, you'll apparently have to use --locked
if you want to use the lockfile.
When installing via a local clone, I get a warning/compile error.
tealdeer hash is 1a3624d0116, cargo version: