logging.warning('Inconsistent requirements for $packageName; using $packagePath (and not ${packages[packageName]}).');
printError('Inconsistent requirements for $packageName; using $packagePath (and not ${packages[packageName]}).');
hadInconsistentRequirements=true;
}
packages[packageName]=packagePath;
...
...
@@ -208,7 +208,7 @@ class AnalyzeCommand extends FlutterCommand {
for(Stringpackageindependencies.keys){
if(packages.containsKey(package)){
if(packages[package]!=dependencies[package]){
logging.warning('Inconsistent requirements for $package; using ${packages[package]} (and not ${dependencies[package]}).');
printError('Inconsistent requirements for $package; using ${packages[package]} (and not ${dependencies[package]}).');
hadInconsistentRequirements=true;
}
}else{
...
...
@@ -219,9 +219,9 @@ class AnalyzeCommand extends FlutterCommand {
}
if(hadInconsistentRequirements){
if(foundAnyInFlutterRepo)
logging.warning('You may need to run "dart ${path.normalize(path.relative(path.join(ArtifactStore.flutterRoot, 'dev/update_packages.dart')))} --upgrade".');
printError('You may need to run "dart ${path.normalize(path.relative(path.join(ArtifactStore.flutterRoot, 'dev/update_packages.dart')))} --upgrade".');
if(foundAnyInCurrentDirectory)
logging.warning('You may need to run "pub upgrade".');