jesseduffield / lazycli

Turn static CLI commands into TUIs with ease

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation failed via cargo

lavantien opened this issue · comments

Currently I can't install it via cargo, this is the log:

$ cargo install lazycli

...
   Compiling lazycli v0.1.15
error[E0599]: no method named `about` found for struct `Arg` in the current scope
  --> /home/savaka/.cargo/registry/src/github.com-1ecc6299db9ec823/lazycli-0.1.15/src/args.rs:20:12
   |
20 |           .about("ignores the first `n` lines of output")
   |            ^^^^^ method not found in `Arg<'_>`

error[E0599]: no method named `about` found for struct `Arg` in the current scope
  --> /home/savaka/.cargo/registry/src/github.com-1ecc6299db9ec823/lazycli-0.1.15/src/args.rs:28:12
   |
28 | ...   .about("frequency of refreshing the content in seconds (values like 0.1 are permitted. Values like 0.001? Also permitted, but you n...
   |        ^^^^^ method not found in `Arg<'_>`

For more information about this error, try `rustc --explain E0599`.
error: failed to compile `lazycli v0.1.15`, intermediate artifacts can be found at `/tmp/cargo-install5hpoM9`

Caused by:
  could not compile `lazycli` due to 2 previous errors

It seems that the Cargo.lock file is ignored and then a version of the clap library with breaking API changes is installed.

You can force Cargo to use the Cargo.lock file using the --locked flag:

cargo install lazycli --locked

Crazy that --locked isn't set by default! I've updated the readme accordingly

ezoic increase your site revenue