vaultssh icon indicating copy to clipboard operation
vaultssh copied to clipboard

Fails to build

Open bernhardkaindl opened this issue 2 years ago • 2 comments

Tested on Ubuntu 20.04, Linux Mint 20.2 and Ubuntu 22.04, each with stock rustc:

error[E0432]: unresolved import `clap::Clap`
error[E0277]: the trait bound `VaultClient: LoginClient` is not satisfied
   --> /home/bkaindl/.cargo/registry/src/github.com-1ecc6299db9ec823/vaultssh-0.1.1/src/main.rs:275:45
    |
275 |         if let Err(e) = crate::login::login(&mut client, config, console).await {
    |                         ------------------- ^^^^^^^^^^^ the trait `LoginClient` is not implemented for `VaultClient`
    |                         |
    |                         required by a bound introduced by this call
145 | pub struct Opts {
    | --------------- function or associated item `parse` not found for this
...
184 |     let opts: Opts = Opts::parse();
    |                            ^^^^^ function or associated item not found in `Opts`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
    = note: the following traits define an item `parse`, perhaps you need to implement one of them:
            candidate #1: `time::parsing::parsable::sealed::Sealed`
            candidate #2: `Parser`
            candidate #3: `TypedValueParser`

Some errors have detailed explanations: E0277, E0432, E0599.
For more information about an error, try `rustc --explain E0277`.

bernhardkaindl avatar Sep 20 '22 16:09 bernhardkaindl

@jmgilman is there any chance of updating the code to stable clap 4.x acording to above compile error?

pibylick avatar Dec 06 '23 13:12 pibylick

Try installing via:

cargo install --locked vaultssh

Also see: https://github.com/rust-lang/cargo/issues/7169 . Cargo by default does not respect the author's lockfile, and lets end-users try and handle breaking changes.

ckcr4lyf avatar Jun 19 '24 10:06 ckcr4lyf