Skip to content

[go_router_builder] Support analyzer 13#12189

Open
simolus3 wants to merge 2 commits into
flutter:mainfrom
simolus3:go-router-analyzer-13
Open

[go_router_builder] Support analyzer 13#12189
simolus3 wants to merge 2 commits into
flutter:mainfrom
simolus3:go-router-analyzer-13

Conversation

@simolus3

@simolus3 simolus3 commented Jul 12, 2026

Copy link
Copy Markdown

This declares support for analyzer versions 13.x in the go_router_builder package.

I ran tool/run_tests.dart after upgrading, no code changes are necessary and existing tests pass. Note that another package in this repository, pigeon, also depends on an older analyzer version but would require code changes to support analyzer version 13.x.

Closes flutter/flutter#189357.

Pre-Review Checklist

Comments below:

  • There is no relevant documentation to update.
  • This change is covered by existing tests, so I have not added new ones.

@github-actions github-actions Bot added p: go_router_builder triage-framework Should be looked at in framework triage labels Jul 12, 2026

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

Copy link
Copy Markdown
Contributor

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 the analyzer dependency constraint in packages/go_router_builder/pubspec.yaml to support version 13 (allowing <14.0.0) and updates the CHANGELOG.md accordingly. There are no review comments, and I have no feedback to provide.

@stuartmorgan-g

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! Because of the volume of PRs we receive, we require that new contributors use our checklist to guide them through critical steps in creating a Flutter PR. This PR's description is missing that checklist, so it is being marked as a Draft.

Please edit the PR description to add the checklist, then ensure that you have completed all of the steps. Once you've done that, please mark the PR as ready for review.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@stuartmorgan-g stuartmorgan-g marked this pull request as draft July 12, 2026 22:02
@simolus3 simolus3 marked this pull request as ready for review July 13, 2026 06:41

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

Copy link
Copy Markdown
Contributor

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 the go_router_builder package to version 4.3.1, extending the supported range of the analyzer dependency to <14.0.0 and updating the changelog accordingly. There are no review comments, and I have no feedback to provide.

@simolus3

Copy link
Copy Markdown
Author

Apologies for causing extra work here, I assumed it would be fine for a tiny change but I shouldn't have skipped that. I have created an issue and filled out the checklist now.

@stuartmorgan-g stuartmorgan-g left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. @chunhtai for secondary approval

Did you only try 13, or did 14 require code changes? (It's fine to add just 13 in this PR, just wondering if there's information to capture in another issue about work required to adopt support for 14.)

@stuartmorgan-g stuartmorgan-g requested a review from chunhtai July 13, 2026 13:07
@simolus3

simolus3 commented Jul 13, 2026

Copy link
Copy Markdown
Author

Did you only try 13, or did 14 require code changes?

I couldn't even get 14 to resolve, I believe Flutter stable currently pins an older version of meta (or test_api, I don't remember exactly) incompatible with analyzer: ^14.0.0. Since I didn't get any deprecation warnings for analyzer 13.x though, I assume the package could support analyzer 14 without code changes. It feels premature to declare that in the pubspec though.

(and just to point it out again in case it's relevant, pigeon is the other package in this repo depending on analyzer and that requires code changes even for 13.x, so I've left it at 12.x)

@stuartmorgan-g

Copy link
Copy Markdown
Collaborator

I couldn't even get 14 to resolve, I believe Flutter stable currently pins an older version of meta (or test_api, I don't remember exactly) incompatible with analyzer: ^14.0.0.

Thanks, good to know. We'll have to test with master in a follow-up.

(and just to point it out again in case it's relevant, pigeon is the other package in this repo depending on analyzer and that requires code changes even for 13.x, so I've left it at 12.x)

That's flutter/flutter#187145

@simolus3

Copy link
Copy Markdown
Author

Just checked, with the latest Flutter from main the issue is the source_helper package not supporting analyzer 14.

@chunhtai chunhtai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, just checked the changelog for analyzer v14 https://pub.dev/packages/analyzer/changelog

it doesn't seem it will impact the go_router_builder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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] Support analyzer versions 13.x

3 participants