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

Tweak sparse registry conditional #69

Merged
merged 1 commit into from Feb 12, 2023
Merged

Tweak sparse registry conditional #69

merged 1 commit into from Feb 12, 2023

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Feb 12, 2023

Try whether this fixes #68.

@dtolnay dtolnay merged commit 25dc93b into master Feb 12, 2023
@dtolnay dtolnay deleted the sparseregistry branch February 12, 2023 21:10
then
echo CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse >> $GITHUB_ENV
if [ -z ${CARGO_REGISTRIES_CRATES_IO_PROTOCOL+set} ]; then
if rustc +${{steps.parse.outputs.toolchain}} --version --verbose | not grep -q '^release: 1\.6[67]\.'; then

Choose a reason for hiding this comment

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

It may also need to check commit-date since it's only stabilized after 2023-01-20 or later: rust-lang/rust#107120, but the rustc release was already at 1.68.

See https://github.com/pola-rs/polars/actions/runs/4183969359/jobs/7249008618

jonasbb added a commit to actions-rust-lang/setup-rust-toolchain that referenced this pull request Feb 15, 2023
These issues are reported again rust-toolchain from which the code is
inspired.

dtolnay/rust-toolchain#71

dtolnay/rust-toolchain#69 (review)
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.

Sparse registry check is nondeterministic
2 participants