-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] dependabot crossterm update broke semver? #109
Comments
Actually apologies, please ignore. It appears there's a version conflict that I didn't realise was there 🤦 |
I still believe that the upgrade from To reference prior art from other crates, the But then again, if nobody notices, was it really breaking? |
That's actually a good question 😅 I guess one could argue that re-exporting types from a dependency would implicitly result in the need for breaking change releases when that dependency introduces breaking changes? One thing though, the different versions wont be a problem, as long as users use the re-exported types when interacting with comfy-table. This only becomes a problem, if one uses types from crossterm directly and puts them into comfy-table. |
I'm torn. On one hand, if one uses both (comfy_table and crossterm) in the same project, it's very convenient to use crossterms exports directly, as one would otherwise have to handle different "versions" of Color/Attribute in the same file. One the other hand, this is indeed some kind of semver breaking change, since the user is forced to update crossterm in the same go, which breaks the build, even though it should be a minor update. Here're the possible solutions I see:
|
After reading through my own proposal a few times, I feel like 1. or 4. is the way to go. I would still like to get some feedback from users that actually stumbled upon this issue. |
I implemented the 4. solution in the linked PR. What do you think? |
Hey @Nukesor! Thanks for the crate, we've really enjoyed it! We encountered this issue over a Shuttle because we were mixing I'll take a look at your proposed solution and PR when I get a moment (feel free to ping me if I forget and you still need feedback!), but I just wanted to comment now to let you know that we have resolved it for now. Thanks again! |
@oddgrd It would be awesome, if you could check out, whether the version on that branch works for you without any problems and need to upgrade! I'll do the same on my own project and if everything looks good, I'll go ahead and publish a v7 release :) |
Tested it in my own project and it works perfectly fine with the changes in that MR :) |
Describe the bug
Hey there! First of all, thanks for making this crate.
I just wanted to let you know that it looks like the most recent patch caused a semver break, which inadvertently caused the latest compile for
cargo-shuttle
(a CLI for a dev platform) to break. Currently because of the semver break, it's impossible to compile the package and users are currently required to use--locked
for dependencies. Is there any chance the 6.2.0 release could be yanked?Thank you in advance
Steps to reproduce
Run
cargo install cargo-shuttle
Logs (if applicable)
Operating system
Pop!_OS (not applicable)
Comfy-table version
6.2.0
Additional context
All context has already been provided - please let me know if you need any other information.
The text was updated successfully, but these errors were encountered: