Commit bb0a724a authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Don't require .packages file for `flutter packages` command (#12258)

(it's the command that populates the .packages file)
parent 3433f42b
......@@ -347,7 +347,7 @@ abstract class FlutterCommand extends Command<Null> {
}
// Validate the current package map only if we will not be running "pub get" later.
if (!(_usesPubOption && argResults['pub'])) {
if (parent?.name != 'packages' && !(_usesPubOption && argResults['pub'])) {
final String error = new PackageMap(PackageMap.globalPackagesPath).checkValid();
if (error != null)
throw new ToolExit(error);
......
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