kdash-rs / kdash

A simple and fast dashboard for Kubernetes
https://kdash.cli.rs
MIT License
2.08k stars 79 forks source link

v0.6.1 fails to compile on openSUSE Tumbleweed #469

Open johanneskastl opened 5 days ago

johanneskastl commented 5 days ago

Describe the bug v0.6.1 fails to compile on openSUSE Tumbleweed

[  467s]    Compiling kdash v0.6.1 (/home/abuild/rpmbuild/BUILD/kdash-0.6.1)
[  470s] error[E0277]: the trait bound `ratatui::prelude::Line<'_>: From<Vec<ratatui::text::span::Span<'_>>>` is not satisfied
[  470s]    --> src/ui/utils.rs:392:18
[  470s]     |
[  470s] 392 |             Some(ratatui::text::Line::from(
[  470s]     |                  ^^^^^^^^^^^^^^^^^^^ the trait `From<Vec<ratatui::text::span::Span<'_>>>` is not implemented for `ratatui::prelude::Line<'_>`
[  470s]     |
[  470s]     = help: the following other types implement trait `From<T>`:
[  470s]               `ratatui::prelude::Line<'a>` implements `From<&'a str>`
[  470s]               `ratatui::prelude::Line<'a>` implements `From<Span<'a>>`
[  470s]               `ratatui::prelude::Line<'a>` implements `From<Vec<Span<'a>>>`
[  470s]               `ratatui::prelude::Line<'a>` implements `From<std::string::String>`
[  470s] 
[  471s] For more information about this error, try `rustc --explain E0277`.
[  471s] error: could not compile `kdash` (bin "kdash") due to 1 previous error
[  472s] error: Bad exit status from /var/tmp/rpm-tmp.A5lApR (%build)

v0.6.0 using the same build commands builds fine.

Kind Regards, Johannes

gferry commented 3 days ago

Same here on Ubuntu 24.04 LTS (Noble), with an identical error. v0.6.0 does not build smoothly too...

Best regards, Guillaume.

gferry commented 3 days ago

OK, I can build v0.6.1 without issues, using the locked command :+1: cargo install --locked kdash