[flutter_tools] Catch lack of flutter tools source missing (#93168)

This commit is contained in:
Christopher Fujino
2021-11-12 14:43:52 -08:00
committed by GitHub
parent d21bb19708
commit e8ec8a0dfb
8 changed files with 148 additions and 8 deletions

View File

@@ -1251,6 +1251,7 @@ abstract class FlutterCommand extends Command<void> {
/// rather than calling [runCommand] directly.
@mustCallSuper
Future<FlutterCommandResult> verifyThenRunCommand(String? commandPath) async {
globals.preRunValidator.validate();
// Populate the cache. We call this before pub get below so that the
// sky_engine package is available in the flutter cache for pub to find.
if (shouldUpdateCache) {