Skip to content

[go_router_builder] Add compatibility with analyzer 10.x #182064

Description

@PiotrRogulski

go_router_builder isn't compatible with the latest analyzer and packages using these versions:

Because no versions of leancode_lint match >20.0.0 <21.0.0 and leancode_lint 20.0.0 depends on analyzer ^10.0.2, leancode_lint ^20.0.0 requires analyzer ^10.0.2.
And because go_router_builder 4.2.0 depends on analyzer >=8.2.0 <10.0.0 and no versions of go_router_builder match >4.2.0 <5.0.0, leancode_lint ^20.0.0 is incompatible with go_router_builder ^4.2.0.
So, because app depends on both go_router_builder ^4.2.0 and leancode_lint ^20.0.0, version solving failed.
Failed to update packages.

Activity

  1. saurabh-mirajkar commented on Feb 9, 2026

    @saurabh-mirajkar
    Contributor

    Thanks for the report. To better understand the scope and impact, could you please share:

    • The full pubspect.yaml (especially all dev_dependencies)
    • Output of flutter doctor -v
    • The full output of flutter pub get (including version solving error)
  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Feb 9, 2026
  3. PiotrRogulski commented on Feb 9, 2026

    @PiotrRogulski
    Author

    Of course (I created a separate clean project, with just the offending dependencies):

    pubspec.yaml
    name: reproduction
    description: "A new Flutter project."
    publish_to: 'none'
    version: 0.1.0
    
    environment:
      sdk: ^3.10.8
    
    dependencies:
      flutter:
        sdk: flutter
      go_router: ^17.1.0
    
    dev_dependencies:
      go_router_builder: ^4.2.0
      leancode_lint: ^20.0.0
    
    flutter:
      uses-material-design: true

    flutter doctor -v
    [✓] Flutter (Channel stable, 3.38.9, on macOS 26.3 25D122 darwin-arm64, locale en-US) [210ms]
        • Flutter version 3.38.9 on channel stable at /Users/piotr/fvm/versions/3.38.9
        • Upstream repository https://github.com/flutter/flutter.git
        • Framework revision 67323de285 (12 days ago), 2026-01-28 13:43:12 -0800
        • Engine revision 587c18f873
        • Dart version 3.10.8
        • DevTools version 2.51.1
        • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file, enable-lldb-debugging
    
    [✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0-rc1) [947ms]
        • Android SDK at /Users/piotr/Library/Android/sdk
        • Emulator version 36.3.10.0 (build_id 14472402) (CL:N/A)
        • Platform android-36, build-tools 36.1.0-rc1
        • ANDROID_HOME = /Users/piotr/Library/Android/sdk
        • Java binary at: /Users/piotr/Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
          This is the JDK bundled with the latest Android Studio installation on this machine.
          To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
        • Java version OpenJDK Runtime Environment (build 21.0.8+-14196175-b1038.72)
        • All Android licenses accepted.
    
    [✓] Xcode - develop for iOS and macOS (Xcode 26.2) [743ms]
        • Xcode at /Applications/Xcode.app/Contents/Developer
        • Build 17C52
        • CocoaPods version 1.16.2
    
    [✓] Chrome - develop for the web [4ms]
        • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
    
    [✓] Connected device (3 available) [5.9s]
        • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 16 (API 36) (emulator)
        • macOS (desktop)             • macos         • darwin-arm64   • macOS 26.3 25D122 darwin-arm64
        • Chrome (web)                • chrome        • web-javascript • Google Chrome 144.0.7559.133
    
    [✓] Network resources [230ms]
        • All expected network resources are available.
    
    • No issues found!
    

    flutter pub get
    Resolving dependencies...
    Because leancode_lint >=20.0.0 depends on analyzer ^10.0.2 and go_router_builder >=4.1.3 depends on analyzer >=8.2.0
      <10.0.0, leancode_lint >=20.0.0 is incompatible with go_router_builder >=4.1.3.
    So, because reproduction depends on both go_router_builder ^4.2.0 and leancode_lint ^20.0.0, version solving failed.
    
    
    You can try the following suggestion to make the pubspec resolve:
    * Consider downgrading your constraint on leancode_lint: flutter pub add dev:leancode_lint:^6.0.0
    Failed to update packages.
    
  4. removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    on Feb 9, 2026
  5. saurabh-mirajkar commented on Feb 9, 2026

    @saurabh-mirajkar
    Contributor

    @PiotrRogulski Thanks for the requested details.

  6. added
    packageflutter/packages repository. See also p: labels.
    and removed
    in triagePresently being triaged by the triage team
    on Feb 9, 2026
  7. added
    P2Important issues not at the top of the work list
    on Feb 17, 2026
  8. felix-barz-brickmakers commented on Mar 24, 2026

    @felix-barz-brickmakers
  9. github-actions commented on Apr 11, 2026

    @github-actions

    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 -v and a minimal reproduction of the issue.

  10. locked as resolved and limited conversation to collaborators on Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listp: go_routerThe go_router packagepackageflutter/packages repository. See also p: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      Sponsor
      SponsoredKunjungi sekarang
      Promo