Skip to content

Installation is failing with error[E0277]: the trait bound vergen::feature::build::Build: vergen_lib::entries::Add is not satisfied #47

Description

@nicc777

This is on OpenSuse Tumbleweed using cargo from the OpenSuse repo: cargo 1.92.0 (344c4567c 2025-10-21) (built from a source tarball)

More detailed error dump:

error[E0277]: the trait bound `vergen::feature::build::Build: vergen_lib::entries::Add` is not satisfied
   --> /home/nicc777/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/openapi-tui-0.10.2/build.rs:5:39
    |
  5 |   Emitter::default().add_instructions(&BuildBuilder::all_build()?)?.add_instructions(&Git2Builder::all_git()?)?.emit()
    |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `vergen_lib::entries::Add` is not implemented for `vergen::feature::build:
:Build`
    |
help: trait impl with same name found
   --> /home/nicc777/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-9.1.0/src/feature/build.rs:252:1
    |
252 | impl AddEntries for Build {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `vergen_lib` are being used?
note: there are multiple different versions of crate `vergen_lib` in the dependency graph
   --> /home/nicc777/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-lib-0.1.6/src/entries.rs:45:1
    |
 45 | pub trait Add {
    | ^^^^^^^^^^^^^ this is the required trait
    |
   ::: /home/nicc777/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/openapi-tui-0.10.2/build.rs:2:5
    |
  2 | use vergen_git2::{BuildBuilder, Emitter, Git2Builder};
    |     -----------
    |     |
    |     one version of crate `vergen_lib` used here, as a dependency of crate `vergen_git2`
    |     one version of crate `vergen_lib` used here, as a dependency of crate `vergen`
    |
   ::: /home/nicc777/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-9.1.0/src/feature/build.rs:148:1
    |
148 | pub struct Build {
    | ---------------- this type doesn't implement the required trait
    |
   ::: /home/nicc777/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-lib-9.1.0/src/entries.rs:45:1
    |
 45 | pub trait Add {
    | ------------- this is the found trait
    = help: you can use `cargo tree` to explore your dependency tree
    = note: required for the cast from `&vergen::feature::build::Build` to `&dyn vergen_lib::entries::Add`

For more information about this error, try `rustc --explain E0277`.
error: could not compile `openapi-tui` (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `openapi-tui v0.10.2`, intermediate artifacts can be found at `/tmp/cargo-install4pCOIY`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

I then tried using podman with the following command:

podman run --rm -ti -v $(pwd)/examples:/opt zaghaghi/openapi-tui -i /opt/petstore.json
openapi-tui error: Something went wrong
Error:
   0: Permission denied (os error 13)

So that did not work either.

Finally tried the binary download, and that worked.

Just logging these issues incase it is something important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions