Skip to content

Conversation

@stuartmorgan-g
Copy link
Collaborator

Updates the compatible analyzer range from 7.x-8.x to 8.x-9.x (9.0 being the current version). The range has to be moved, rather than expanded, because part of the breaking change in 9.0 was removing methods that were replaced and deprecated in 8.x.

Fixes flutter/flutter#179073
Fixes flutter/flutter#166603

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. 2 3

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions bot added p: go_router_builder triage-framework Should be looked at in framework triage labels Nov 26, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates go_router_builder to support version 9 of the analyzer package. The changes primarily involve migrating from the now-removed element2 API to the current element API across the codebase. This includes updating type names (e.g., Element2 to Element), method calls, and property accessors to their modern equivalents. The pubspec.yaml is updated to reflect the new analyzer version constraint (>=8.0.0 <10.0.0), and the CHANGELOG.md is updated accordingly. The changes are correct and consistently applied to achieve compatibility with analyzer v9.

@stuartmorgan-g
Copy link
Collaborator Author

test-exempt: code refactor with no semantic change

Copy link
Contributor

@chunhtai chunhtai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@muhammadkamel

This comment was marked as off-topic.

@stuartmorgan-g stuartmorgan-g added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 30, 2025
@auto-submit auto-submit bot merged commit 0e20a04 into flutter:main Nov 30, 2025
80 checks passed
@stuartmorgan-g stuartmorgan-g deleted the go-router-builder-analyzer-9 branch December 1, 2025 14:13
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 1, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Dec 2, 2025
github-merge-queue bot pushed a commit to flutter/flutter that referenced this pull request Dec 2, 2025
flutter/packages@c8be05d...148dcd2

2025-12-01 stuartmorgan@google.com [go_router_builder] Require analyzer
8.2 (flutter/packages#10546)
2025-12-01 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump androidx.core:core from 1.13.1 to 1.17.0 in
/packages/local_auth/local_auth_android/android (flutter/packages#10505)
2025-12-01 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump the kotlin-gradle-plugin group across 7 directories
with 1 update (flutter/packages#10501)
2025-12-01 stuartmorgan@google.com [google_fonts] Replace deprecated
FontWeight.index (flutter/packages#10544)
2025-12-01 antoine.herzog@hey.com [camera_web] Fix camera initialization
failure on Firefox Android (flutter/packages#10341)
2025-12-01 engine-flutter-autoroll@skia.org Roll Flutter from
2b5fa94 to 05d6005 (3 revisions) (flutter/packages#10543)
2025-12-01 stuartmorgan@google.com [file_selector] Migrate to UIScene
(flutter/packages#10429)
2025-11-30 stuartmorgan@google.com [go_router_builder] Add `analyzer` 9
compatibility (flutter/packages#10526)
2025-11-29 engine-flutter-autoroll@skia.org Roll Flutter from
022b155 to 2b5fa94 (14 revisions) (flutter/packages#10535)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
mboetger pushed a commit to mboetger/flutter that referenced this pull request Dec 2, 2025
…r#179343)

flutter/packages@c8be05d...148dcd2

2025-12-01 stuartmorgan@google.com [go_router_builder] Require analyzer
8.2 (flutter/packages#10546)
2025-12-01 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump androidx.core:core from 1.13.1 to 1.17.0 in
/packages/local_auth/local_auth_android/android (flutter/packages#10505)
2025-12-01 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump the kotlin-gradle-plugin group across 7 directories
with 1 update (flutter/packages#10501)
2025-12-01 stuartmorgan@google.com [google_fonts] Replace deprecated
FontWeight.index (flutter/packages#10544)
2025-12-01 antoine.herzog@hey.com [camera_web] Fix camera initialization
failure on Firefox Android (flutter/packages#10341)
2025-12-01 engine-flutter-autoroll@skia.org Roll Flutter from
2b5fa94 to 05d6005 (3 revisions) (flutter/packages#10543)
2025-12-01 stuartmorgan@google.com [file_selector] Migrate to UIScene
(flutter/packages#10429)
2025-11-30 stuartmorgan@google.com [go_router_builder] Add `analyzer` 9
compatibility (flutter/packages#10526)
2025-11-29 engine-flutter-autoroll@skia.org Roll Flutter from
022b155 to 2b5fa94 (14 revisions) (flutter/packages#10535)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App p: go_router_builder triage-framework Should be looked at in framework triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[go_router_builder] Add compatibility with analyzer 9.x [go_router_builder] withNullability is deprecated

3 participants