Skip to content

Commit c7014e1

Browse files
Sort manifest file paths alphabetically (#14466)
* Sort manifest file paths alphabetically * Update src/Umbraco.Infrastructure/Manifest/ManifestParser.cs Co-authored-by: Ronald Barendse <[email protected]> --------- Co-authored-by: Ronald Barendse <[email protected]>
1 parent 31e1acc commit c7014e1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Umbraco.Infrastructure/Manifest/ManifestParser.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,11 @@ private IEnumerable<string> GetManifestFiles()
250250
return Array.Empty<string>();
251251
}
252252

253-
return Directory.GetFiles(_path, "package.manifest", SearchOption.AllDirectories);
253+
var files = Directory.GetFiles(_path, "package.manifest", SearchOption.AllDirectories);
254+
255+
// Ensure a consistent, alphabetical sorting of paths, because this is not guaranteed to be the same between file systems or OSes
256+
Array.Sort(files);
257+
258+
return files;
254259
}
255260
}

0 commit comments

Comments
 (0)