Skip to content

Consider improved messaging when an SDK upgrade would unblock version solving #3564

@matanlurey

Description

@matanlurey

dart --version: Dart SDK version: 2.17.6 (stable) (Tue Jul 12 12:54:37 2022 +0200) on "macos_arm64"

It appears like the analyzer version (v5.0.0) isn't compatible with the state of the package, or am I missing something?

EDIT: After blasting away my pubspec.lock and calling dart pub get:

Resolving dependencies... 
The current Dart SDK version is 2.17.6.

Because test >=1.16.1 <1.16.6 depends on analyzer >=0.39.5 <2.0.0 and test >=1.16.6 <1.17.10 depends on analyzer ^1.0.0, test >=1.16.1 <1.17.10 requires analyzer >=0.39.5 <2.0.0.
And because test >=1.17.10 <1.20.0 depends on analyzer >=1.0.0 <3.0.0 and test >=1.20.0 <1.21.0 depends on analyzer >=2.0.0 <4.0.0, test >=1.16.1 <1.21.0 requires analyzer >=0.39.5 <4.0.0.
And because test >=1.21.0 <1.21.5 depends on analyzer >=2.0.0 <5.0.0 and test >=1.21.5 requires SDK version >=2.18.0-146.0.dev <3.0.0, test >=1.16.1 requires analyzer >=0.39.5 <5.0.0.
So, because linter depends on both analyzer ^5.0.0 and test ^1.16.1, version solving failed.

I think @pq you might have forgot to rev the pubspec dependencies?

Should the github action check that pub get works for stable as a reminder to rev the pubspec?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions