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 tests for rustc 1.82-beta #561

Merged
merged 1 commit into from
Sep 8, 2024
Merged

Fix tests for rustc 1.82-beta #561

merged 1 commit into from
Sep 8, 2024

Conversation

algesten
Copy link
Owner

@algesten algesten commented Sep 5, 2024

rustc 1.82-beta in this commit changes something about how hashes are calculated (likely this PR). Since our tests have pinned hash values, we get a breakage.

Since we uphold MSRV 1.65, we can't pin the hash in the test since we will get broken CI tests when we ensure the MSRV compiles.

Copy link
Collaborator

@thomaseizinger thomaseizinger left a comment

Choose a reason for hiding this comment

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

Should we switch to a stable hash-algorithm instead? We already depend on the sha1 crate so we could use that?

@algesten
Copy link
Owner Author

algesten commented Sep 5, 2024

Could we chop it down to not be super long and still preserve enough entropy?

@thomaseizinger
Copy link
Collaborator

We also depend on crc which allows for a 16-byte output. That allows us to stay within the 32 char limit of foundation. Could use that?

@algesten algesten merged commit 021594e into main Sep 8, 2024
22 checks passed
@algesten algesten deleted the fix/rustc-182 branch September 8, 2024 11:07
@algesten
Copy link
Owner Author

algesten commented Sep 8, 2024

Let's merge this and open a new PR exploring a stable hash.

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