kdash icon indicating copy to clipboard operation
kdash copied to clipboard

0.6.2 FBFS

Open jayvdb opened this issue 5 months ago • 3 comments

kdash 0.6.2 fails to build from source

% cargo install kdash
    Updating crates.io index
  Downloaded kdash v0.6.2
  Downloaded 1 crate (1.8MiB) in 2.28s
  Installing kdash v0.6.2
    Updating crates.io index
     Locking 387 packages to latest compatible versions
...
   Compiling kdash v0.6.2
error[E0308]: mismatched types
   --> /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kdash-0.6.2/src/app/metrics.rs:180:56
    |
180 |         if let Err(e) = extract_allocatable_from_nodes(node_list, &mut resources).await {
    |                         ------------------------------ ^^^^^^^^^ expected `kube_core::object::ObjectList<Node>`, found `ObjectList<Node>`
    |                         |
    |                         arguments to this function are incorrect
    |
note: two different versions of crate `kube_core` are being used; two types coming from two different versions of the same crate are different types even if they look the same
    |
   ::: /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kube-core-0.99.0/src/object.rs:20:1
    |
20  | pub struct ObjectList<T>
    | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `kube_core::object::ObjectList`
   --> /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kube-core-0.98.0/src/object.rs:20:1
    |
20  | pub struct ObjectList<T>
    | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ObjectList`
    |
   ::: /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kdash-0.6.2/src/app/metrics.rs:8:5
    |
8   | use kubectl_view_allocations::{
    |     ------------------------ one version of crate `kube_core` used here, as a dependency of crate `kube`
    |
   ::: /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kdash-0.6.2/src/app/contexts.rs:2:5
    |
2   | use kube::config::{Context, Kubeconfig, NamedContext};
    |     ---- one version of crate `kube_core` used here, as a dependency of crate `kube`
    = help: you can use `cargo tree` to explore your dependency tree
note: function defined here
   --> /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kubectl-view-allocations-0.20.5/src/lib.rs:218:14
    |
218 | pub async fn extract_allocatable_from_nodes(
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
   --> /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kdash-0.6.2/src/app/metrics.rs:200:55
    |
200 |         if let Err(e) = extract_allocatable_from_pods(pod_list, &mut resources).await {
    |                         ----------------------------- ^^^^^^^^ expected `kube_core::object::ObjectList<Pod>`, found `ObjectList<Pod>`
    |                         |
    |                         arguments to this function are incorrect
    |
note: two different versions of crate `kube_core` are being used; two types coming from two different versions of the same crate are different types even if they look the same
    |
   ::: /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kube-core-0.99.0/src/object.rs:20:1
    |
20  | pub struct ObjectList<T>
    | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `kube_core::object::ObjectList`
   --> /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kube-core-0.98.0/src/object.rs:20:1
    |
20  | pub struct ObjectList<T>
    | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ObjectList`
    |
   ::: /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kdash-0.6.2/src/app/metrics.rs:8:5
    |
8   | use kubectl_view_allocations::{
    |     ------------------------ one version of crate `kube_core` used here, as a dependency of crate `kube`
    |
   ::: /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kdash-0.6.2/src/app/contexts.rs:2:5
    |
2   | use kube::config::{Context, Kubeconfig, NamedContext};
    |     ---- one version of crate `kube_core` used here, as a dependency of crate `kube`
    = help: you can use `cargo tree` to explore your dependency tree
note: function defined here
   --> /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kubectl-view-allocations-0.20.5/src/lib.rs:349:14
    |
349 | pub async fn extract_allocatable_from_pods(
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0308]: mismatched types
   --> /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kdash-0.6.2/src/app/metrics.rs:218:63
    |
218 |         if let Err(e) = extract_utilizations_from_pod_metrics(pod_metrics, &mut resources).await {
    |                         ------------------------------------- ^^^^^^^^^^^ expected `kube_core::object::ObjectList<PodMetrics>`, found `ObjectList<PodMetrics>`
    |                         |
    |                         arguments to this function are incorrect
    |
note: two different versions of crate `kube_core` are being used; two types coming from two different versions of the same crate are different types even if they look the same
    |
   ::: /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kube-core-0.99.0/src/object.rs:20:1
    |
20  | pub struct ObjectList<T>
    | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the expected type `kube_core::object::ObjectList`
   --> /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kube-core-0.98.0/src/object.rs:20:1
    |
20  | pub struct ObjectList<T>
    | ^^^^^^^^^^^^^^^^^^^^^^^^ this is the found type `ObjectList`
    |
   ::: /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kdash-0.6.2/src/app/metrics.rs:8:5
    |
8   | use kubectl_view_allocations::{
    |     ------------------------ one version of crate `kube_core` used here, as a dependency of crate `kube`
    |
   ::: /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kdash-0.6.2/src/app/contexts.rs:2:5
    |
2   | use kube::config::{Context, Kubeconfig, NamedContext};
    |     ---- one version of crate `kube_core` used here, as a dependency of crate `kube`
    = help: you can use `cargo tree` to explore your dependency tree
note: function defined here
   --> /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/kubectl-view-allocations-0.20.5/src/lib.rs:451:14
    |
451 | pub async fn extract_utilizations_from_pod_metrics(
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `kdash` (bin "kdash") due to 3 previous errors
error: failed to compile `kdash v0.6.2`, intermediate artifacts can be found at `/var/folders/cf/bq94w26s3gv0twtfly7216rw0000gn/T/cargo-installLFFHVw`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

jayvdb avatar Jul 22 '25 04:07 jayvdb