Commit 2259c59b authored by Devon Carew's avatar Devon Carew Committed by GitHub

update the cache earlier (#5415)

* update the cache earlier

* add documentation
parent 3dda6290
......@@ -160,15 +160,16 @@ abstract class FlutterCommand extends Command {
}
}
// 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.
await cache.updateAll();
if (shouldRunPub) {
int exitCode = await pubGet();
if (exitCode != 0)
return exitCode;
}
// Populate the cache.
await cache.updateAll();
if (flutterUsage.isFirstRun)
flutterUsage.printUsage();
......
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