[GH-ISSUE #914] Unable to compile due to two versions of vergen_lib. #553

Closed
opened 2026-03-02 23:48:37 +03:00 by kerem · 3 comments
Owner

Originally created by @TasteGit on GitHub (Jan 26, 2026).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/914

error[E0277]: the trait bound vergen::feature::build::Build: vergen_lib::entries::Add is not satisfied
--> /home/taste/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/librespot-core-0.8.0/build.rs:16:27
|
16 | .add_instructions(&build)?
| ^^^^^^ the trait vergen_lib::entries::Add is not implemented for vergen::feature::build::Build
|
note: there are multiple different versions of crate vergen_lib in the dependency graph
--> /home/taste/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-lib-0.1.6/src/entries.rs:45:1
|
45 | pub trait Add {
| ^^^^^^^^^^^^^ this is the expected trait
|
::: /home/taste/.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
help: the trait vergen_lib::entries::Add is implemented for Gitcl
--> /home/taste/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-gitcl-1.0.8/src/gitcl/mod.rs:910:1
|
910 | impl AddEntries for Gitcl {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
= 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 librespot-core (build script) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile spotify_player v0.21.3, intermediate artifacts can be found at /tmp/cargo-installPmWQ6F.
To reuse those artifacts with a future compilation, set the environment variable CARGO_TARGET_DIR to that path.

Originally created by @TasteGit on GitHub (Jan 26, 2026). Original GitHub issue: https://github.com/aome510/spotify-player/issues/914 error[E0277]: the trait bound `vergen::feature::build::Build: vergen_lib::entries::Add` is not satisfied --> /home/taste/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/librespot-core-0.8.0/build.rs:16:27 | 16 | .add_instructions(&build)? | ^^^^^^ the trait `vergen_lib::entries::Add` is not implemented for `vergen::feature::build::Build` | note: there are multiple different versions of crate `vergen_lib` in the dependency graph --> /home/taste/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-lib-0.1.6/src/entries.rs:45:1 | 45 | pub trait Add { | ^^^^^^^^^^^^^ this is the expected trait | ::: /home/taste/.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 help: the trait `vergen_lib::entries::Add` is implemented for `Gitcl` --> /home/taste/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-gitcl-1.0.8/src/gitcl/mod.rs:910:1 | 910 | impl AddEntries for Gitcl { | ^^^^^^^^^^^^^^^^^^^^^^^^^ = 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 `librespot-core` (build script) due to 1 previous error warning: build failed, waiting for other jobs to finish... error: failed to compile `spotify_player v0.21.3`, intermediate artifacts can be found at `/tmp/cargo-installPmWQ6F`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
kerem 2026-03-02 23:48:37 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ruinedraziel commented on GitHub (Jan 27, 2026):

Same exact issue here. Did some diligence, apparently this is all the way up to vergen itself.
Librespot - https://github.com/librespot-org/librespot/issues/1681
Vergen - https://github.com/rustyhorde/vergen/issues/478

Maybe issue is upstream.

<!-- gh-comment-id:3807928580 --> @ruinedraziel commented on GitHub (Jan 27, 2026): Same exact issue here. Did some diligence, apparently this is all the way up to vergen itself. Librespot - https://github.com/librespot-org/librespot/issues/1681 Vergen - https://github.com/rustyhorde/vergen/issues/478 Maybe issue is upstream.
Author
Owner

@DCMachina commented on GitHub (Jan 30, 2026):

Hi,
my instance of this problem was cargo trying to be helpful when reading two different versions

run:

cargo install spotify_player --locked --force

almost guaranteed to be an instant fix!

<!-- gh-comment-id:3824413798 --> @DCMachina commented on GitHub (Jan 30, 2026): Hi, my instance of this problem was cargo trying to be helpful when reading two different versions run: cargo install spotify_player --locked --force almost guaranteed to be an instant fix!
Author
Owner

@ruinedraziel commented on GitHub (Feb 8, 2026):

Hi, my instance of this problem was cargo trying to be helpful when reading two different versions

run:

cargo install spotify_player --locked --force

almost guaranteed to be an instant fix!

Thx, gonna try it out.

<!-- gh-comment-id:3867765030 --> @ruinedraziel commented on GitHub (Feb 8, 2026): > Hi, my instance of this problem was cargo trying to be helpful when reading two different versions > > run: > > cargo install spotify_player --locked --force > > almost guaranteed to be an instant fix! Thx, gonna try it out.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#553
No description provided.