Unverified Commit 876b45f6 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

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

parent a813dc55
...@@ -506,7 +506,10 @@ class FlutterCommandRunner extends CommandRunner<void> { ...@@ -506,7 +506,10 @@ class FlutterCommandRunner extends CommandRunner<void> {
final List<String> projectPaths = fs.directory(rootPath) final List<String> projectPaths = fs.directory(rootPath)
.listSync(followLinks: false) .listSync(followLinks: false)
.expand((FileSystemEntity entity) { .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(); .toList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment