Commit 5670243b authored by Adam Barth's avatar Adam Barth

Sanity check --local-build directory

Fixes https://github.com/flutter/engine/issues/1613
parent 1999db29
......@@ -129,8 +129,10 @@ class FlutterCommandRunner extends CommandRunner {
String realFlutterPath = flutterDir.resolveSymbolicLinksSync();
enginePath = path.dirname(path.dirname(path.dirname(path.dirname(realFlutterPath))));
if (enginePath == '/' || enginePath.isEmpty)
enginePath = null;
if (enginePath == '/' || enginePath.isEmpty || !FileSystemEntity.isDirectorySync(path.join(enginePath, 'out'))) {
_logging.severe('Unable to detect local build in $enginePath.\nDo you have a dependency override for the flutter package?');
exit(2);
}
}
List<BuildConfiguration> configs = <BuildConfiguration>[];
......
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