Skip to content

Commit 6aad2b8

Browse files
committed
fix(generator): Write URI in sorted order to prevent SHA churn
1 parent 5ef3656 commit 6aad2b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/tools/template_cache_generator.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ printTemplateCache(Map<String, String> templateKeyMap,
8989
outSink.write(fileHeader(outputLibrary));
9090

9191
List<Future> reads = <Future>[];
92-
templateKeyMap.forEach((uri, templateFile) {
92+
templateKeyMap.keys.toList().sort().forEach((uri) {
93+
var templateFile = templateKeyMap[uri];
9394
reads.add(new File(templateFile).readAsString().then((fileStr) {
9495
fileStr = fileStr.replaceAll('"""', r'\"\"\"');
9596
String resultUri = uri;

0 commit comments

Comments
 (0)