skip .dart_tool folders when running update-packages (#30082)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user