From 876b45f64ea3c926b21c0963a776626e1b1d5783 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Thu, 28 Mar 2019 12:15:59 -0700 Subject: [PATCH] skip .dart_tool folders when running update-packages (#30082) --- .../flutter_tools/lib/src/runner/flutter_command_runner.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart index 9d375f2c85..3ca8b2ad03 100644 --- a/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart +++ b/packages/flutter_tools/lib/src/runner/flutter_command_runner.dart @@ -506,7 +506,10 @@ class FlutterCommandRunner extends CommandRunner { final List projectPaths = fs.directory(rootPath) .listSync(followLinks: false) .expand((FileSystemEntity entity) { - return entity is Directory ? _gatherProjectPaths(entity.path) : []; + if (entity is Directory && !fs.path.split(entity.path).contains('.dart_tool')) { + return _gatherProjectPaths(entity.path); + } + return []; }) .toList();