Repository navigation
[go_router_builder] update the version of analyzer being used #132624
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.13Found to occur in 3.13Found to occur in 3.13has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: go_router_builderThe go_router_builder packageThe go_router_builder packager: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Is there an existing issue for this?
- I have searched the existing issues
- I have read the guide to filing a bug
Steps to reproduce
- Go to pubspec.yaml and add
riverpod_lint : ^2.0.0andgo_router_builder : ^2.3.0as dependencies - Run
flutter pub get
Expected results
Should be able to resolve dependencies and get packages.
Actual results
Because go_router_builder >=1.0.13 depends on analyzer >=4.4.0 <6.0.0 and riverpod_lint 2.0.0 depends on analyzer ^6.0.0, go_router_builder >=1.0.13 is incompatible with riverpod_lint 2.0.0.
And because no versions of riverpod_lint match >2.0.0 <3.0.0, go_router_builder >=1.0.13 is incompatible with riverpod_lint ^2.0.0.
So, because general_app_structure depends on both riverpod_lint ^2.0.0 and go_router_builder ^2.3.0, version solving failed.
Code sample
Add this to pubscpec.yaml
dev_dependencies:
flutter_test:
sdk: flutter
riverpod_lint: ^2.0.0
go_router_builder: ^2.3.0
Screenshots or Video
Logs
Logs
Because go_router_builder >=1.0.13 depends on analyzer >=4.4.0 <6.0.0 and riverpod_lint 2.0.0 depends on analyzer ^6.0.0, go_router_builder >=1.0.13 is incompatible with riverpod_lint 2.0.0.
And because no versions of riverpod_lint match >2.0.0 <3.0.0, go_router_builder >=1.0.13 is incompatible with riverpod_lint ^2.0.0.
So, because general_app_structure depends on both riverpod_lint ^2.0.0 and go_router_builder ^2.3.0, version solving failed.Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.10.6, on Microsoft Windows [Version 10.0.22621.2134], locale en-US)
• Flutter version 3.10.6 on channel stable at C:\Users\gogom\Documents\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision f468f3366c (5 weeks ago), 2023-07-12 15:19:05 -0700
• Engine revision cdbeda788a
• Dart version 3.0.6
• DevTools version 2.23.1
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at C:\Users\gogom\AppData\Local\Android\sdk
• Platform android-33, build-tools 32.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[X] Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all of its default components
[√] Android Studio (version 2022.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694)
[√] VS Code (version 1.81.1)
• VS Code at C:\Users\gogom\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.70.0
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.2134]
• Chrome (web) • chrome • web-javascript • Google Chrome 115.0.5790.171
• Edge (web) • edge • web-javascript • Microsoft Edge 115.0.1901.203
[√] Network resources
• All expected network resources are available.
! Doctor found issues in 1 category.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work listfound in release: 3.10Found to occur in 3.10Found to occur in 3.10found in release: 3.13Found to occur in 3.13Found to occur in 3.13has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onp: go_router_builderThe go_router_builder packageThe go_router_builder packager: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team

Activity
[-]Latest version of go_router_builder cannot be used along with riverpod_lint[/-][+][go_router_builder] update the version of `analyzer` being used[/+]danagbemava-nc commentedon Aug 16, 2023
Reproducible using the dependencies provided above.
flutter doctor -v
hbcraft commentedon Aug 21, 2023
This issue also occurs when go_router_builder 2.3.0 is used with freezed 2.4.2
kuhnroyal commentedon Aug 30, 2023
Linking #132115 for reference.
ValentinVignal commentedon Jan 31, 2024
I believe this was done in flutter/packages#4921 and can now be closed.
github-actions commentedon Dec 9, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.