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 CI job for building on MSRV #510

Merged
merged 2 commits into from
Nov 13, 2024
Merged

fix CI job for building on MSRV #510

merged 2 commits into from
Nov 13, 2024

Conversation

Freax13
Copy link
Member

@Freax13 Freax13 commented Nov 12, 2024

It turns out that dtolnay/rust-toolchain sets the installed toolchain as the global default, but rustup prioritizes our rust-toolchain.toml. Instead, set an environment variable. RUSTUP_TOOLCHAIN has a higher priority than rust-toolchain.toml 1.

Footnotes

  1. https://rust-lang.github.io/rustup/overrides.html#overrides

It turns out that dtolnay/rust-toolchain sets the installed toolchain
as the global default, but rustup prioritizes our rust-toolchain.toml.
Instead, set an environment variable. RUSTUP_TOOLCHAIN has a higher
priority than rust-toolchain.toml [^1].

[^1]: https://rust-lang.github.io/rustup/overrides.html#overrides
Copy link
Member

@phil-opp phil-opp left a comment

Choose a reason for hiding this comment

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

Thanks!

@Freax13 Freax13 merged commit 3fc9106 into master Nov 13, 2024
8 of 13 checks passed
@Freax13 Freax13 deleted the fix/ci-msrv branch November 13, 2024 07:53
@Freax13
Copy link
Member Author

Freax13 commented Nov 13, 2024

Again, I briefly changed the branch protection rules, so that I could merge this PR without CI passing (there's already a fix for CI in #507).

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