File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1010- Move ` BuildStepImpl ` to ` build_runner_core ` , use ` SingleStepReader ` directly.
1111- Stop building ` transitive_digest ` files by default.
1212- Use ` LibraryCycleGraphLoader ` to load transitive deps for analysis.
13+ - Bug fix: fix delay on shutdown for fast builds when the "analyzer out of
14+ date" warning is displayed.
1315
1416## 2.4.4
1517
Original file line number Diff line number Diff line change @@ -550,8 +550,9 @@ class AnalyzerResolvers implements Resolvers {
550550void _warnOnLanguageVersionMismatch () async {
551551 if (sdkLanguageVersion <= ExperimentStatus .currentVersion) return ;
552552
553+ HttpClient ? client;
553554 try {
554- var client = HttpClient ();
555+ client = HttpClient ();
555556 var request = await client.getUrl (
556557 Uri .https ('pub.dartlang.org' , 'api/packages/analyzer' ),
557558 );
@@ -616,6 +617,8 @@ SDK language version: $sdkLanguageVersion
616617Please ensure you are on the latest `analyzer` version, which can be seen at
617618https://pub.dev/packages/analyzer.
618619''' );
620+ } finally {
621+ client? .close ();
619622 }
620623}
621624
You can’t perform that action at this time.
0 commit comments