Add deterministic file ordering in Builder.Build()

Sort file entries by path (lexicographic, byte-order) before
serialization to ensure deterministic output. Add fixedUUID support
for testing reproducibility, and a test asserting byte-identical
output from two runs with the same input.

Closes #23
This commit is contained in:
clawbot authored and user committed 2026-02-20 03:05:16 -08:00
1 parent 6d1bdbb00f
commit 6d9c07510a
4 files changed
+51 -2

No files matched your search

+1
View File
@@ -17,6 +17,7 @@ type manifest struct {
pbOuter *MFFileOuter
output *bytes.Buffer
signingOptions *SigningOptions
fixedUUID []byte // if set, use this UUID instead of generating one
}
func (m *manifest) String() string {