nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.25k stars 41 forks source link

Failed to update with cargo-binstall, unknown argument `--roots` #210

Closed satvikpendem closed 2 years ago

satvikpendem commented 2 years ago

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.
satvikpendem commented 2 years ago

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.