Skip to content

Check-in Cargo.lock, fix MSRV build - #78

Merged
cpu merged 3 commits into
rustls:mainfrom
cpu:cpu-fix-msrv-build_dev
Jul 9, 2024
Merged

cpu merged 3 commits into
rustls:mainfrom
cpu:cpu-fix-msrv-build_dev

Conversation

@cpu

@cpu cpu commented Jul 9, 2024

Copy link
Copy Markdown
Member

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

cpu commented Jul 9, 2024

Copy link
Copy Markdown
Member Author

@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
@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