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

Fix MSRV CI issue by pinning half to v2.2.1 #198

Merged
merged 3 commits into from
Jan 28, 2024
Merged

Fix MSRV CI issue by pinning half to v2.2.1 #198

merged 3 commits into from
Jan 28, 2024

Conversation

notgull
Copy link
Member

@notgull notgull commented Jan 28, 2024

This commit fixes the MSRV CI failure by pinning the half crate to
version 2.2.1. We should look for a longer term solution to this
issue.

This commit fixes the MSRV CI failure by pinning the half crate to
version 2.2.1

Signed-off-by: John Nunley <dev@notgull.net>
@notgull notgull requested a review from john01dav as a code owner January 28, 2024 19:42
@notgull notgull requested review from daxpedda and ids1024 January 28, 2024 19:42
Copy link
Member

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should pin it in CI for MSRV runs instead of in Cargo.toml.

Even though this is a dev-dependency and won't affect downstream users, it affects tests and local-development, where we are not gonna run with the same dependencies as the majority of users: just the latest.

Unfortunately this would also be more inconvenient, but I think this is necessary until rust-lang/cargo#9930 is resolved (assuming that half uses correct MSRV entries in its releases).

Signed-off-by: John Nunley <dev@notgull.net>
@@ -91,14 +91,17 @@ jobs:
shell: bash
run: cargo $CMD build --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES

- name: Pin versions of dev-deps
if: matrix.rust_version == '1.65.0'
run: bash tools/fix_msrv.sh
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we just call cargo update -p half --precise 2.2.1?

I would prefer not to use a bash script because the lack of cross-platform support kinda defeats it's purpose compared to just putting it directly into the CI script.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't know about this command, thanks!

Signed-off-by: John Nunley <dev@notgull.net>
@notgull notgull merged commit 34d52bd into master Jan 28, 2024
39 checks passed
@notgull notgull deleted the notgull/ci-fix branch January 28, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants