Repository navigation
fix: broaden analyzer constraint in test_and_fix for Flutter beta compatibility - #1040
Merged
gspencergoog merged 3 commits intoSep 23, 2026
Merged
Conversation
In tool/test_and_fix, analyzer was previously capped at <10.0.2 due to an old meta 1.17.0 pin in the Flutter SDK. Flutter stable and beta now ship with meta 1.19.0. Flutter beta-3.49.0 pins test_api 0.7.14 in flutter_test, which requires test >= 1.31.2, which in turn requires analyzer >= 13.0.0. The <10.0.2 cap caused pub version solving to fail across all beta matrix CI jobs. Broaden analyzer constraint to '>=8.0.0 <15.0.0' to permit analyzer resolution on Flutter beta while maintaining backward compatibility with Flutter stable.
…in data_model_test - Regenerate ai_provider.g.dart for WhenComplete runBuild() override. - Replace package:flutter/src/foundation/change_notifier.dart with package:flutter/foundation.dart in data_model_test.dart.
5 of 6 tasks
josemontespg
approved these changes
Sep 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Broadens the
analyzerconstraint intool/test_and_fix/pubspec.yamlfrom">=8.0.0 <10.0.2"to">=8.0.0", resolving a pub workspace version-solving deadlock on the Flutterbetachannel.Changes
tool/test_and_fix/pubspec.yaml, removed the<10.0.2upper bound onanalyzer.meta 1.17.0(both Flutter stable and beta now ship withmeta 1.19.0).Context & Root Cause
In Flutter
beta-3.49.0-0.1.pre,flutter_testfrom the Flutter SDK pinsmatcher: 0.12.20andtest_api: 0.7.14.Any version of
package:testcompatible withtest_api 0.7.14istest >= 1.31.2, which requiresanalyzer >= 13.0.0 < 15.0.0.Because
tool/test_and_fixis part of the root pub workspace (genui_monorepo) and constrainedanalyzer < 10.0.2, the pub solver could not resolve a valid dependency graph on Flutter beta. This causeddart pub getto fail across all(beta)matrix CI jobs onmainand all PRs.Testing
dart test tool/test_and_fix/testlocally (all 22 tests pass).analyze_files(0 diagnostics).