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

improvement: Don't fail on hashing, but use a random hash #2058

Merged
merged 1 commit into from May 26, 2023

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented May 25, 2023

Previously, when hashing would fail the whole compilation would also fail and while this seems incredibly rare let's try to guard ourselves here.

Connected to #2053

It's the safest option, we could also try another stamp in this case, but I think there is something wrong with that jar

@tgodzik tgodzik requested review from adpi2 and ckipp01 May 25, 2023 12:50
Previously, when hashing would fail the whole compilation would also fail and while this seems incredibly rare let's try to guard ourselves here.

Connected to scalacenter#2053
@tgodzik tgodzik changed the title improvement: Don't fail on hashing, but use a random one improvement: Don't fail on hashing, but use a random hash May 25, 2023
Copy link
Member

@adpi2 adpi2 left a comment

Choose a reason for hiding this comment

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

Do we know how to reproduce the java.nio.file.ClosedFileSystemException exception?

@tgodzik
Copy link
Contributor Author

tgodzik commented May 25, 2023

Do we know how to reproduce the java.nio.file.ClosedFileSystemException exception?

No idea, I don't the filesystem is closed at any point, so my guess is that the jar is in an unexpected format. I hope we can shed some more light on this with the error message

Copy link
Member

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

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

👍🏼

@tgodzik tgodzik merged commit 7a7a913 into scalacenter:main May 26, 2023
16 of 17 checks passed
@tgodzik tgodzik deleted the random-hash branch May 26, 2023 09:24
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.

None yet

3 participants