@@ -121,6 +121,8 @@ class AnalyzeCommand extends FlutterCommand {
...
@@ -121,6 +121,8 @@ class AnalyzeCommand extends FlutterCommand {
}
}
}
}
boolfoundAnyInCurrentDirectory=false;
if(argResults['current-directory']){
if(argResults['current-directory']){
// ./*.dart
// ./*.dart
DirectorycurrentDirectory=newDirectory('.');
DirectorycurrentDirectory=newDirectory('.');
...
@@ -131,8 +133,10 @@ class AnalyzeCommand extends FlutterCommand {
...
@@ -131,8 +133,10 @@ class AnalyzeCommand extends FlutterCommand {
foundOne=true;
foundOne=true;
}
}
}
}
if(foundOne)
if(foundOne){
pubSpecDirectories.add('.');
pubSpecDirectories.add('.');
foundAnyInCurrentDirectory=true;
}
}
}
if(argResults['current-package']){
if(argResults['current-package']){
...
@@ -141,6 +145,7 @@ class AnalyzeCommand extends FlutterCommand {
...
@@ -141,6 +145,7 @@ class AnalyzeCommand extends FlutterCommand {
if(FileSystemEntity.isFileSync(mainPath)){
if(FileSystemEntity.isFileSync(mainPath)){
dartFiles.add(mainPath);
dartFiles.add(mainPath);
pubSpecDirectories.add('.');
pubSpecDirectories.add('.');
foundAnyInCurrentDirectory=true;
}
}
}
}
...
@@ -180,9 +185,9 @@ class AnalyzeCommand extends FlutterCommand {
...
@@ -180,9 +185,9 @@ class AnalyzeCommand extends FlutterCommand {
}
}
if(hadInconsistentRequirements){
if(hadInconsistentRequirements){
if(argResults['flutter-repo'])
if(argResults['flutter-repo'])
_logging.warning('You may need to run "dart ${path.normalize(path.relative(path.join(ArtifactStore.flutterRoot, 'dev/update_packages.dart')))}".');
_logging.warning('You may need to run "dart ${path.normalize(path.relative(path.join(ArtifactStore.flutterRoot, 'dev/update_packages.dart')))} --upgrade".');