Closed tomprince closed 7 years ago
That sounds like a job for cargo install --force --vers XXX YYY
, unless I'm missing some obvious advantage basically rewriting the UI and update-check layers would bring?
I'd like to avoid reinstalling the package if it is already installed and of the correct version. The use-case I have is installing clippy in travis builds. For example, I'd like to replace the code here with something like cargo install-update -i clippy:$CLIPPY_VERSION
.
ya alright
Currently waiting on https://github.com/danielpclark/array_tool/pull/12
https://github.com/danielpclark/array_tool/pull/12 landed in array_tool
0.4.0
did that do the thing for you or is it still kinda off
Yes, that appears to work.
Released in v1.1.0
.
I'd like to be able to specify a version to install when using
cargo install-update -i
. I'd like to be able to use this in travis to install a pinned version of packages like rustfmt/clippy without needing to manually check if the package is installed or the correct version.