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

Commit

Permalink
Ensure licenses excluded file list has newline at EOF
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso committed Dec 16, 2022
1 parent ed80638 commit 4db7b59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/licenses_golden/excluded_files
Original file line number Diff line number Diff line change
Expand Up @@ -2911,4 +2911,4 @@
../../../third_party/zlib/google/zip_reader_unittest.cc
../../../third_party/zlib/google/zip_unittest.cc
../../../third_party/zlib/patches/README
../../../tools
../../../tools
2 changes: 1 addition & 1 deletion ci/licenses_golden/tool_signature
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Signature: 2aaa7d1662adb75aac43db23f4bd5d97
Signature: e9bc01b7e51cb2185dc056dffd7ff351

5 changes: 4 additions & 1 deletion tools/licenses/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2121,8 +2121,11 @@ Future<void> main(List<String> arguments) async {
system.exit(1);
}
// write to disk the list of files we did _not_ cover, so it's easier to catch in diffs
final String excluded = (_RepositoryDirectory._excluded.map(
(fs.IoNode node) => node.fullName,
).toSet().toList()..sort()).join('\n');
system.File(path.join(argResults['out'] as String, 'excluded_files')).writeAsStringSync(
(_RepositoryDirectory._excluded.map((fs.IoNode node) => node.fullName).toSet().toList()..sort()).join('\n'),
'$excluded\n',
);
}
} catch (e, stack) {
Expand Down

0 comments on commit 4db7b59

Please sign in to comment.