Skip to content

Commit

Permalink
Make build output reproducible
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
labbott committed Nov 16, 2023
1 parent 5af447d commit 5ab0336
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 43 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pmbus"
version = "0.1.0"
version = "0.1.1"
authors = ["Bryan Cantrill <[email protected]>"]
edition = "2018"
license = "MPL-2.0"
Expand Down
Loading

0 comments on commit 5ab0336

Please sign in to comment.