未验证 提交 bef3fd0d 编写于 作者: Z Zachary Anderson 提交者: GitHub

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

For https://github.com/flutter/flutter/issues/70349
上级 091b6cc5
......@@ -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));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册