Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit bef3fd0

Browse files
authored
Default to 2.7 when generating the package config (#22469)
For flutter/flutter#70349
1 parent 091b6cc commit bef3fd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/generate_package_config/bin/generate_from_legacy.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ void main(List<String> args) async {
4646
if (!File.fromUri(pubspec).existsSync()) {
4747
continue;
4848
}
49-
// Default to 2.8 if not found to prevent all packages from accidentally
49+
// Default to 2.7 if not found to prevent all packages from accidentally
5050
// opting into NNBD.
5151
languageVersion = await languageVersionFromPubspec(pubspec, name) ??
52-
LanguageVersion(2, 8);
52+
LanguageVersion(2, 7);
5353
packages.add(Package(name, packageRoot,
5454
languageVersion: languageVersion, packageUriRoot: uri));
5555
}

0 commit comments

Comments
 (0)