This is even though the install+upgrade behaviour of Cargo has been stabilized, and running on my local machine do not yield this error when latest diesel is already installed.
# in localhost
$ cargo --version
cargo 1.48.0 (65cbdd2dc 2020-10-14)
$ rustup show
Default host: x86_64-apple-darwin
....
active toolchain
----------------
1.48.0-x86_64-apple-darwin (overridden by '/Users/chakrit_w/Projects/test-rust-caching/rust-toolchain')
rustc 1.48.0 (7eac88abb 2020-11-16)
$ cargo install diesel_cli \
--branch master --git https://github.com/diesel-rs/diesel \
--no-default-features --features postgres
Updating git repository `https://github.com/diesel-rs/diesel`
Ignored package `diesel_cli v1.4.0 (https://github.com/diesel-rs/diesel?branch=master#493541dd)` is already installed, use --force to override
Hi,
I've just found a strange behaviour in rust:1.48-slim docker image when using
cargo install
inside Dockerfile with cached cargo dir:This is even though the
install+upgrade
behaviour of Cargo has been stabilized, and running on my local machine do not yield this error when latest diesel is already installed.Please help investigate this - Thanks!