skip .dart_tool folders when running update-packages (#30082)

This commit is contained in:
Jonah Williams
2019-03-28 12:15:59 -07:00
committed by GitHub
parent a813dc559a
commit 876b45f64e

View File

@@ -506,7 +506,10 @@ class FlutterCommandRunner extends CommandRunner<void> {
final List<String> projectPaths = fs.directory(rootPath)
.listSync(followLinks: false)
.expand((FileSystemEntity entity) {
return entity is Directory ? _gatherProjectPaths(entity.path) : <String>[];
if (entity is Directory && !fs.path.split(entity.path).contains('.dart_tool')) {
return _gatherProjectPaths(entity.path);
}
return <String>[];
})
.toList();