I installed cargo-update and when I tried to use it with cargo install-update -a or even cargo install-update xh for example, I get the following error:
$ cargo install-update xh
Updating registry 'https://github.com/rust-lang/crates.io-index'
Package Installed Latest Needs update
xh v0.16.1 v0.17.0 Yes
Updating xh
error: Found argument '--roots' which wasn't expected, or isn't valid in this context
If you tried to supply `--roots` as a value rather than a flag, use `-- --roots`
USAGE:
cargo-binstall [OPTIONS] [crate[@version]]...
For more information try --help
Updated 0 packages.
Failed to update xh.
Ah looks like my cargo-binstall version was too old, I updated manually with cargo binstall cargo-binstall --no-confirm first and now cargo install-update -a works.
I installed
cargo-update
and when I tried to use it withcargo install-update -a
or evencargo install-update xh
for example, I get the following error: