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-in Cargo.lock, fix MSRV build #78

Merged
merged 3 commits into from
Jul 9, 2024
Merged

Conversation

cpu
Copy link
Member

@cpu cpu commented Jul 9, 2024

Presently CI's MSRV job is failing with the error:

error: package cc v1.1.0 cannot be built because it requires rustc 1.67 or newer, while the currently active rustc version is 1.63.0

Following updated guidance on the matter and the other Rustls repos, this branch checks in a Cargo.lock file. By doing so after running cargo update -Z minimal-versions -p cc w/ a nightly compiler we carefully pin the Cargo.lock version of the dep to ensure the MSRV builds succeeds.

Along the way I also tweaked the CI trigger conditions to allow easier testing before opening a PR.

cpu added 3 commits July 9, 2024 13:39
This is now a recommended practice for libraries and makes maintaining
our MSRV much easier.
This is a compromise between running on all pushes vs only running for
main/PRs that still allows easy on-demand CI runs while developing.
@cpu cpu self-assigned this Jul 9, 2024
@cpu
Copy link
Member Author

cpu commented Jul 9, 2024

@quininer This feels small & uncontroversial enough to merge as-is, but if you have any feedback I'm happy to iterate or revert as needed!

@cpu cpu merged commit 941387a into rustls:main Jul 9, 2024
6 checks passed
@cpu cpu deleted the cpu-fix-msrv-build_dev branch July 9, 2024 19: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.

2 participants