Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build #2

Open
bernhardkaindl opened this issue Sep 20, 2022 · 2 comments
Open

Fails to build #2

bernhardkaindl opened this issue Sep 20, 2022 · 2 comments

Comments

@bernhardkaindl
Copy link

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`.
@pibylick
Copy link

pibylick commented Dec 6, 2023

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

@ckcr4lyf
Copy link

Try installing via:

cargo install --locked vaultssh

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants