diff --git a/ci/licenses_golden/excluded_files b/ci/licenses_golden/excluded_files index cb86ce8cad58f..2ab9d444732bc 100644 --- a/ci/licenses_golden/excluded_files +++ b/ci/licenses_golden/excluded_files @@ -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 \ No newline at end of file +../../../tools diff --git a/ci/licenses_golden/tool_signature b/ci/licenses_golden/tool_signature index 637a7ca2dfc21..446be9279d9b5 100644 --- a/ci/licenses_golden/tool_signature +++ b/ci/licenses_golden/tool_signature @@ -1,2 +1,2 @@ -Signature: 2aaa7d1662adb75aac43db23f4bd5d97 +Signature: e9bc01b7e51cb2185dc056dffd7ff351 diff --git a/tools/licenses/lib/main.dart b/tools/licenses/lib/main.dart index 65f5b97cd7f54..6e4badf43f42b 100644 --- a/tools/licenses/lib/main.dart +++ b/tools/licenses/lib/main.dart @@ -2121,8 +2121,11 @@ Future main(List 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) {