Default to 2.7 when generating the package config (flutter/engine#22469)

For https://github.com/flutter/flutter/issues/70349
This commit is contained in:
Zachary Anderson 2020-11-12 10:37:14 -08:00 committed by GitHub
parent 1d0a96bd3f
commit f34d9eac78

View File

@ -46,10 +46,10 @@ void main(List<String> args) async {
if (!File.fromUri(pubspec).existsSync()) {
continue;
}
// Default to 2.8 if not found to prevent all packages from accidentally
// Default to 2.7 if not found to prevent all packages from accidentally
// opting into NNBD.
languageVersion = await languageVersionFromPubspec(pubspec, name) ??
LanguageVersion(2, 8);
LanguageVersion(2, 7);
packages.add(Package(name, packageRoot,
languageVersion: languageVersion, packageUriRoot: uri));
}