@@ -129,8 +144,6 @@ class AnalyzeCommand extends FlutterCommand {
...
@@ -129,8 +144,6 @@ class AnalyzeCommand extends FlutterCommand {
}
}
}
}
boolfoundAnyInCurrentDirectory=false;
if(argResults['current-directory']){
if(argResults['current-directory']){
// ./*.dart
// ./*.dart
DirectorycurrentDirectory=newDirectory('.');
DirectorycurrentDirectory=newDirectory('.');
...
@@ -204,7 +217,7 @@ class AnalyzeCommand extends FlutterCommand {
...
@@ -204,7 +217,7 @@ class AnalyzeCommand extends FlutterCommand {
}
}
}
}
if(hadInconsistentRequirements){
if(hadInconsistentRequirements){
if(argResults['flutter-repo'])
if(foundAnyInFlutterRepo)
logging.warning('You may need to run "dart ${path.normalize(path.relative(path.join(ArtifactStore.flutterRoot, 'dev/update_packages.dart')))} --upgrade".');
logging.warning('You may need to run "dart ${path.normalize(path.relative(path.join(ArtifactStore.flutterRoot, 'dev/update_packages.dart')))} --upgrade".');
if(foundAnyInCurrentDirectory)
if(foundAnyInCurrentDirectory)
logging.warning('You may need to run "pub upgrade".');
logging.warning('You may need to run "pub upgrade".');