Skip to content

Commit a5cd999

Browse files
Fix non-deterministic archive output across runs and platforms
Sort file list by ordinal string comparison after Directory.GetFiles to ensure consistent file IDs regardless of OS. Update MS2Lib submodule with fix to sort ConcurrentDictionary values by ID before saving. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 81e1150 commit a5cd999

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

MS2Create/Program.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ private static (string FullPath, string RelativePath)[] GetFilesRelative(string
105105
}
106106

107107
string[] files = Directory.GetFiles(path, "*.*", SearchOption.AllDirectories);
108+
Array.Sort(files, StringComparer.Ordinal);
108109
var result = new (string FullPath, string RelativePath)[files.Length];
109110

110111
for (int i = 0; i < files.Length; i++) {

MS2Lib

0 commit comments

Comments
 (0)