Skip to content
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

check MSRV in CI, lower MSRV to 1.57.0 #2532

Closed
wants to merge 2 commits into from

Conversation

the-mikedavis
Copy link
Member

@the-mikedavis the-mikedavis commented May 22, 2022

It's very easy to use new rust features without realizing it since
the CI and local development workflows may use the latest rust version.
We try to keep some backwards compatibility with rust versions to make
packaging easier for some OS-level package-managers like Void Linux's.
See #1881.

This change adds a new CI check which uses the cargo-msrv crate to
verify an MSRV version recorded in helix-term's Cargo.toml. When
changing MSRV, we can then edit helix-term/Cargo.toml's
package.metadata.msrv key.

The MSRV is set at 1.60.0 for the sake of checkmarks on builds but
ideally we want to support 1.57.0. The PR that fixes the MSRV in #2460
should set this MSRV metadata key back to 1.57.0.

Closes #2482.

It's very easy to use new rust features without realizing it since
the CI and local development workflows may use the latest rust version.
We try to keep some backwards compatibility with rust versions to make
packaging easier for some OS-level package-managers like Void Linux's.
See helix-editor#1881.

This change adds a new CI check which uses the cargo-msrv crate to
verify an MSRV version recorded in helix-term's Cargo.toml. When
changing MSRV, we can then edit `helix-term/Cargo.toml`'s
`package.metadata.msrv` key.

The MSRV is set at 1.60.0 for the sake of checkmarks on builds but
ideally we want to support 1.57.0. The PR that fixes the MSRV in helix-editor#2460
should set this MSRV metadata key back to 1.57.0.

Closes helix-editor#2482.
This line uses the Display trait for io::ErrorKind which was stabilized
in Rust 1.60.0. We can set MSRV all the way back to 1.57.0 by replacing
it with a pretty-print.

Closes helix-editor#2460
@the-mikedavis the-mikedavis changed the title check MSRV in CI check MSRV in CI, lower MSRV to 1.57.0 May 22, 2022
@the-mikedavis
Copy link
Member Author

Actually I think it's best to do this by using a matrix for the Check job: cargo-msrv doesn't say what failed the check. Plus it seems to misbehave on 1.57.0 🤔

@the-mikedavis the-mikedavis deleted the md-msrv-ci branch May 22, 2022 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Check MSRV in CI
2 participants