Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 985f4ac

Browse files
authored
Ensure licenses excluded file list has newline at EOF (#38354)
1 parent 1fe1ec4 commit 985f4ac

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

ci/licenses_golden/excluded_files

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2911,4 +2911,4 @@
29112911
../../../third_party/zlib/google/zip_reader_unittest.cc
29122912
../../../third_party/zlib/google/zip_unittest.cc
29132913
../../../third_party/zlib/patches/README
2914-
../../../tools
2914+
../../../tools

ci/licenses_golden/tool_signature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Signature: 2aaa7d1662adb75aac43db23f4bd5d97
1+
Signature: e9bc01b7e51cb2185dc056dffd7ff351
22

tools/licenses/lib/main.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2121,8 +2121,11 @@ Future<void> main(List<String> arguments) async {
21212121
system.exit(1);
21222122
}
21232123
// write to disk the list of files we did _not_ cover, so it's easier to catch in diffs
2124+
final String excluded = (_RepositoryDirectory._excluded.map(
2125+
(fs.IoNode node) => node.fullName,
2126+
).toSet().toList()..sort()).join('\n');
21242127
system.File(path.join(argResults['out'] as String, 'excluded_files')).writeAsStringSync(
2125-
(_RepositoryDirectory._excluded.map((fs.IoNode node) => node.fullName).toSet().toList()..sort()).join('\n'),
2128+
'$excluded\n',
21262129
);
21272130
}
21282131
} catch (e, stack) {

0 commit comments

Comments
 (0)