careful-iron-7275
05/26/2023, 4:50 PMcargo install cargo-shuttle
, I get the following compile error:
error[E0308]: mismatched types
--> /home/glitch/.cargo/registry/src/github.com-1ecc6299db9ec823/shuttle-common-0.17.0/src/models/error.rs:27:43
|
27 | self.message.to_string().with(Color::Red)
| ---- ^^^^^^^^^^ expected `crossterm::style::Color`, found `comfy_table::Color` | |
| arguments to this method are incorrect
|
= note: `comfy_table::Color` and `crossterm::style::Color` have similar names, but are actually distinct types
note: `comfy_table::Color` is defined in crate `crossterm`
--> /home/glitch/.cargo/registry/src/github.com-1ecc6299db9ec823/crossterm-0.26.1/src/style/types/color.rs:28:1
|
28 | pub enum Color {
| ^^^^^^^^^^^^^^
note: `crossterm::style::Color` is defined in crate `crossterm`
--> /home/glitch/.cargo/registry/src/github.com-1ecc6299db9ec823/crossterm-0.25.0/src/style/types/color.rs:28:1
|
28 | pub enum Color {
| ^^^^^^^^^^^^^^
= note: perhaps two different versions of crate `crossterm` are being used?
note: method defined here
--> /home/glitch/.cargo/registry/src/github.com-1ecc6299db9ec823/crossterm-0.25.0/src/style/stylize.rs:78:8
|
78 | fn with(self, color: Color) -> Self::Styled {
gentle-ice-1561
05/26/2023, 5:05 PMcareful-iron-7275
05/26/2023, 5:14 PM--locked
, thanks!clean-tent-34910
05/26/2023, 6:32 PMagreeable-painting-48846
05/26/2023, 6:42 PMgentle-ice-1561
05/26/2023, 7:24 PMabc="1.0.0"
(in its lock file) but abc 1.1.0 has been released, installing without locked mode would grab 1.1.0. If that update had a breaking change, you would end up with a "too new" version. --locked makes you use exactly the version in the lock file.agreeable-painting-48846
05/26/2023, 7:26 PMcareful-iron-7275
05/26/2023, 7:26 PMcomfy_table
and get them to yank their 6.2.0
releaseagreeable-painting-48846
05/26/2023, 7:27 PMcareful-iron-7275
05/26/2023, 7:29 PMcareful-iron-7275
05/26/2023, 7:29 PMcareful-iron-7275
05/26/2023, 7:30 PMcareful-iron-7275
05/26/2023, 7:30 PMgentle-ice-1561
05/26/2023, 7:31 PMclean-tent-34910
05/26/2023, 7:43 PM--locked
is the only way to guarantee the installation is going to build... shouldnt that be the default? or am i misunderstanding somethingagreeable-painting-48846
05/26/2023, 7:44 PM--locked
- however this kind of issue while rare, can happen which is why this is the solution. It's just unfortunate because it's a Friday evening 💀gentle-ice-1561
05/26/2023, 7:45 PMagreeable-painting-48846
05/26/2023, 7:51 PMgentle-ice-1561
05/26/2023, 7:52 PMagreeable-painting-48846
05/26/2023, 7:52 PMagreeable-painting-48846
05/26/2023, 7:52 PMgentle-ice-1561
05/26/2023, 7:52 PMgentle-ice-1561
05/26/2023, 7:53 PMclean-tent-34910
05/26/2023, 7:53 PMagreeable-painting-48846
05/26/2023, 7:53 PMclean-tent-34910
05/26/2023, 7:53 PMgentle-ice-1561
05/26/2023, 7:53 PMgentle-ice-1561
05/26/2023, 7:54 PMclean-tent-34910
05/26/2023, 7:54 PMagreeable-painting-48846
05/26/2023, 7:54 PMagreeable-painting-48846
05/26/2023, 7:54 PMagreeable-painting-48846
05/26/2023, 8:02 PMagreeable-painting-48846
05/26/2023, 8:13 PMagreeable-painting-48846
05/26/2023, 8:13 PMagreeable-painting-48846
05/26/2023, 8:14 PMgentle-ice-1561
05/26/2023, 8:44 PMclean-tent-34910
05/26/2023, 8:50 PMclean-tent-34910
05/26/2023, 8:50 PMgentle-ice-1561
05/26/2023, 8:50 PMagreeable-painting-48846
05/26/2023, 8:51 PMclean-tent-34910
05/26/2023, 8:52 PMagreeable-painting-48846
05/26/2023, 8:52 PMclean-tent-34910
05/26/2023, 8:54 PMcareful-iron-7275
05/26/2023, 10:10 PMcareful-iron-7275
05/26/2023, 10:11 PMagreeable-painting-48846
05/26/2023, 10:40 PMcareful-iron-7275
05/28/2023, 11:45 AMcomfy-table
is looking for feedback from users that hit the semver issue, it seems like they are thinking about revamping their API to prevent something like this in the future