Revert "Show output from pub get in flutter pub get (#106300)" (#110478)

This reverts commit 3802eb627e.
This commit is contained in:
Zachary Anderson
2022-08-29 08:02:50 -07:00
committed by GitHub
parent 5848306e37
commit 0e195e9d46
27 changed files with 252 additions and 559 deletions

View File

@@ -980,13 +980,6 @@ class _SnippetChecker {
/// Invokes the analyzer on the given [directory] and returns the stdout (with some lines filtered).
List<String> _runAnalyzer() {
_createConfigurationFiles();
// Run pub get to avoid output from getting dependencies in the analyzer
// output.
Process.runSync(
_flutter,
<String>['pub', 'get'],
workingDirectory: _tempDirectory.absolute.path,
);
final ProcessResult result = Process.runSync(
_flutter,
<String>['--no-wrap', 'analyze', '--no-preamble', '--no-congratulate', '.'],
@@ -1013,7 +1006,7 @@ class _SnippetChecker {
if (stdout.isNotEmpty && stdout.first == 'Building flutter tool...') {
stdout.removeAt(0);
}
if (stdout.isNotEmpty && stdout.first.isEmpty) {
if (stdout.isNotEmpty && stdout.first.startsWith('Running "flutter pub get" in ')) {
stdout.removeAt(0);
}
return stdout;