diff --git a/tools/generate_package_config.dart b/tools/generate_package_config.dart index ffe5323f8e8..b4ea33992d8 100644 --- a/tools/generate_package_config.dart +++ b/tools/generate_package_config.dart @@ -87,8 +87,8 @@ void main(List args) { if (p.name == name) p ]; if (name == 'linter' && matches.length > 1) { - final oldLinter = matches - .firstWhere((p) => p.rootUri.endsWith('third_party/pkg/linter')); + final oldLinter = matches.firstWhere((p) => + p.rootUri.replaceAll(r'\', '/').endsWith('third_party/pkg/linter')); packages.remove(oldLinter); matches.remove(oldLinter); }