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 File Installation Order Deterministic #116

Merged
merged 1 commit into from
Feb 25, 2023
Merged

Conversation

blitz
Copy link
Member

@blitz blitz commented Feb 25, 2023

Due to the use of hash maps, the order of file installation was not deterministic. I've changed the code the use BTreeMaps instead, which makes this deterministic. While I was here, I tried to simplify the code a bit.

Reported-by: @RaitoBezarius

@blitz blitz requested a review from nikstur February 25, 2023 11:37
Copy link
Member

@nikstur nikstur left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

rust/tool/src/install.rs Outdated Show resolved Hide resolved
Due to the use of hash maps, the order of file installation was not
deterministic. I've changed the code the use BTreeMaps instead, which
makes this deterministic. While I was here, I tried to simplify the
code a bit.
@blitz blitz merged commit 195e29f into master Feb 25, 2023
@blitz blitz deleted the installation-order branch February 25, 2023 20:25
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