Skip to content

building after cargo update fails #1070

Closed
oxidecomputer/crucible
#1903

Description

@jordanhendricks

Currently on 29e9cf7f011876c91e6295939afbe9f58964776e of master. I ran a cargo update and tried to build and get:

   Compiling crucible-common v0.0.1 (https://github.com/oxidecomputer/crucible?rev=7103cd3a3d7b0112d2949dd135db06fef0c156bb#7103cd3a)                                                                                                                                                                                  
   Compiling usdt-macro v0.6.0                                                                                                                                                                                                                                                                                         
error[E0277]: the trait bound `Git2: vergen_lib::entries::Add` is not satisfied                                                                                                                                                                                                                                        
   --> /home/jordan/.cargo/git/checkouts/crucible-0a48bd218bc2bbbc/7103cd3/common/build.rs:20:27                                                                                                                                                                                                                       
    |                                                                                                                                                                                                                                                                                                                  
 20 |         .add_instructions(&git)                                                                                                                                                                                                                                                                                  
    |                           ^^^^ the trait `vergen_lib::entries::Add` is not implemented for `Git2`                                                                                                                                                                                                                
    |                                                                                                                                                                                                                                                                                                                  
help: trait impl with same name found                                                                                                                                                                                                                                                                                  
   --> /home/jordan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-git2-1.0.7/src/git2/mod.rs:686:1                                                                                                                                                                                                       
    |                                                                                                                                                                                                                                                                                                                  
686 | impl AddEntries for Git2 {                                                                                                                                                                                                                                                                                       
    | ^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                                                                                         
    = 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/jordan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-lib-9.1.0/src/entries.rs:45:1                                                                                                                                                                                                          
    |                                                                                                                                                                                                                                                                                                                  
 45 | pub trait Add {                                                                                                                                                                                                                                                                                                  
    | ^^^^^^^^^^^^^ this is the required trait                                                                                                                                                                                                                                                                         
    |                                                                                                                                                                                                                                                                                                                  
   ::: /home/jordan/.cargo/git/checkouts/crucible-0a48bd218bc2bbbc/7103cd3/common/build.rs:6:5                                                                                                                                                                                                                         
    |                                                                                                                                                                                                                                                                                                                  
  6 | use vergen::CargoBuilder;                                                                                                                                                                                                                                                                                        
    |     ------ one version of crate `vergen_lib` used here, as a dependency of crate `vergen`                                                                                                                                                                                                                        
...                                                                                                                                                                                                                                                                                                                    
  9 | use vergen_git2::Git2Builder;                                                                                                                                                                                                                                                                                    
    |     ----------- one version of crate `vergen_lib` used here, as a dependency of crate `vergen_git2`                                                                                                                                                                                                              
    |                                                                                                                                                                                                                                                                                                                  
   ::: /home/jordan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-git2-1.0.7/src/git2/mod.rs:85:1                                                                                                                                                                                                        
    |                                                                                                                                                                                                                                                                                                                  
 85 | pub struct Git2 {                                                                                                                                                                                                                                                                                                
    | --------------- this type doesn't implement the required trait                                                                                                                                                                                                                                                   
    |                                                                                                                                                                                                                                                                                                                  
   ::: /home/jordan/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/vergen-lib-0.1.6/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 `&Git2` to `&dyn vergen_lib::entries::Add`   

The relevant dependency tree is:

jordan@rodman:~/src/propolis$ cargo tree -i vergen
vergen v9.1.0
└── vergen-git2 v1.0.7
    [build-dependencies]
    └── crucible-common v0.0.1 (https://github.com/oxidecomputer/crucible?rev=7103cd3a3d7b0112d2949dd135db06fef0c156bb#7103cd3a)
        ├── crucible v0.0.1 (https://github.com/oxidecomputer/crucible?rev=7103cd3a3d7b0112d2949dd135db06fef0c156bb#7103cd3a)
        │   └── propolis v0.1.0 (/home/jordan/src/propolis/lib/propolis)
        │       ├── propolis-server v0.1.0 (/home/jordan/src/propolis/bin/propolis-server)
        │       └── propolis-standalone v0.1.0 (/home/jordan/src/propolis/bin/propolis-standalone)
        └── crucible-protocol v0.0.0 (https://github.com/oxidecomputer/crucible?rev=7103cd3a3d7b0112d2949dd135db06fef0c156bb#7103cd3a)
            └── crucible v0.0.1 (https://github.com/oxidecomputer/crucible?rev=7103cd3a3d7b0112d2949dd135db06fef0c156bb#7103cd3a) (*)
[build-dependencies]
└── crucible-common v0.0.1 (https://github.com/oxidecomputer/crucible?rev=7103cd3a3d7b0112d2949dd135db06fef0c156bb#7103cd3a) (*)

@iximeow found the following existing issues, which seem relevant:

Activity

  1. added this to the 19 milestone on Mar 9, 2026
  2. added a commit that references this issue on Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions