-
-
Notifications
You must be signed in to change notification settings - Fork 662
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
chore(deps): bump termwiz to 0.19.0 #1896
Conversation
@tlinford - could you do me a favor and check this out on mac? Specifically to make sure all the default |
Sure! Will test this one on my macbook. Not sure about what caused the CI failure though. Update: I missed the @ part and thought you were asking me to test lol. Will still test on my side though. |
@a-kenji - any ideas why the nix build msrv is failing? |
@imsnif, |
Thanks @a-kenji - can you help me understand how this mismatch affects us? |
Looks good to me - all keybindings in the default config seem fine. |
The current advertised MSRV is
I guess the question then becomes: do we want to bump MSRV? For your reference: |
For comparison, Helix has an MSRV of |
Optimistically bumping MSRV to |
@xJonathanLEI - what do you mean by this PR needing the MSRV bump after all? Honestly, my preference in these things is not to make changes unless they give us some benefit. If our actual MSRV is higher than what we advertise due to the dependencies we use... why does it matter? How does it affect us or our users? If there's an effect I'm not aware of - for sure. Let's bump it. But otherwise I'd opt to keep things as they are and remove this CI test. |
@imsnif MSRV indicates the minimum Rust compiler version that our code can be compiled with. It makes zero difference to users who always use the latest Rust tool chain version. It only matters for users who are forced to use an old version of Rust:
This is when we changed our MSRV last time: #1177 This is where we "advertise" our MSRV: Line 11 in 5975af6
The CI is there to check the code can actually be compiled with the declared minimum version. If it fails, it means our advertised MSRV needs a bump to match the actual MSRV. |
I totally understand and am aware of MSRV - but what I don't understand is this part. Why? Look how much time we're spending on this. If a user tries to compile with our MSRV version, they will get an error because of the MSRV in our dependencies. Same error they would get if we bump our own. What does it matter what we advertise? Why do we need to waste CI cycles on this? Is there something I'm missing? |
Well the CI is there to make sure we're following the standard, where it requires the So, if the advertised version here is lower than the actual MSRV, like we're having here before the second commit, users of these Rust versions in between will have to compile and encounter an error to find out - not a big deal IMO. But this is technically the benefit of advertising the accurate MSRV (asserted by the CI) now that you asked :) In fact, the benefit is so marginal that many projects I came across don't take it seriously. See here Helix is reporting a MSRV of |
Thanks for the explanation @xJonathanLEI ! I'm good with merging this as is with the new version because we've already done the work. But this is honestly not something I want in our CI because I think - as you say - the benefit is far too marginal and it makes it harder to merge features and bug fixes. I'll remove it in another PR. Anything else we need before merging? IMO we're good. |
I think we're good! I've been using this dependency bump for a while and didn't encounter any issue. Additional context for the MSRV topic: helix-editor/helix#3913 |
Thanks to the swift action from Wez (not using @ here to avoid spamming his inbox), wez/wezterm#2694 has been merged and
termwiz
v0.19.0 has been released with the fix. This PR bumps the dependency version to v0.19.0 to take advantage of it.This is part of the effort towards fully resolving #1021, and it should be much less disruptive compared to #1833.