[web/_tool/verify_packages] skip analyze when pub upgrade fails (#2148)

pull/2149/head
Kevin Moore 10 months ago committed by GitHub
parent 81512c626d
commit dc37f37b5c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -19,12 +19,20 @@ void main() async {
for (var i = 0; i < packageDirs.length; i++) { for (var i = 0; i < packageDirs.length; i++) {
final dir = packageDirs[i]; final dir = packageDirs[i];
logWrapped(ansiMagenta, '\n$dir (${i + 1} of ${packageDirs.length})'); logWrapped(ansiMagenta, '\n$dir (${i + 1} of ${packageDirs.length})');
results.add(await run(dir, 'flutter', [
final upgradeResult = await run(dir, 'flutter', [
'pub', 'pub',
'pub', 'pub',
'upgrade', 'upgrade',
'--no-precompile', '--no-precompile',
])); ]);
results.add(upgradeResult);
if (!upgradeResult) {
// skipping analyze when `pub upgrade` fails.
results.add(false);
continue;
}
results.add(await run( results.add(await run(
dir, dir,
'dart', 'dart',

Loading…
Cancel
Save