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

Make build output reproducible #11

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Make build output reproducible #11

merged 1 commit into from
Nov 28, 2023

Conversation

labbott
Copy link
Contributor

@labbott labbott commented Nov 15, 2023

The build code iterates over HashMaps to generate output. This is correct but may not always generate the same output depending on hashing. This can produce slightly different generated code. Ensure the output is stable by sorting before outputing. We don't actually care what the order is, just that it happens the same way every time.

@labbott labbott requested a review from bcantrill November 15, 2023 20:27
The build code iterates over HashMaps to generate output. This is
correct but may not always generate the same output depending on
hashing. This can produce slightly different generated code.
Ensure the output is stable by sorting before outputing. We don't
actually care what the order is, just that it happens the same way
every time.
Copy link
Contributor

@bcantrill bcantrill left a comment

Choose a reason for hiding this comment

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

This looks great -- thank you!

@labbott labbott merged commit 735a70b into master Nov 28, 2023
8 checks passed
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