Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Too high package:meta dependency constraint #1896

Closed
Albert221 opened this issue May 29, 2024 · 5 comments · Fixed by #1897
Closed

[BUG] Too high package:meta dependency constraint #1896

Albert221 opened this issue May 29, 2024 · 5 comments · Fixed by #1897
Labels
bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing

Comments

@Albert221
Copy link

Albert221 commented May 29, 2024

What is the bug?

Because every version of flutter_test from sdk depends on meta 1.11.0 and flutter_map >=7.0.0 depends on meta ^1.12.0, flutter_test from sdk is incompatible with flutter_map >=7.0.0.
So, because <package> depends on both flutter_map ^7.0.0 and flutter_test from sdk, version solving failed.

I'm on Flutter 3.19.5 for now and can't update yet, but the package's pubspec says minimum Flutter 3.10 is needed, so maybe we can make the constraint for meta a little more loose?

How can we reproduce it?

Create new Flutter project with Flutter 3.19.* and then flutter pub add flutter_map:7.0.0

$ flutter pub add flutter_map:7.0.0
Note: meta is pinned to version 1.11.0 by flutter_test from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.


Because every version of flutter_test from sdk depends on meta 1.11.0 and flutter_map >=7.0.0 depends on meta ^1.12.0,
  flutter_test from sdk is incompatible with flutter_map >=7.0.0.
So, because testtt depends on both flutter_map 7.0.0 and flutter_test from sdk, version solving failed.

Do you have a potential solution?

Make the constraint for meta something like >=1.11.0 <1.13.0 instead

Platforms

Flutter 3.19

Severity

Erroneous: Prevents normal functioning and causes errors in the console

@Albert221 Albert221 added bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing labels May 29, 2024
@RuoLiDevelop
Copy link

file pubspec.yaml

dependency_overrides:
  meta: ">=1.11.0 <1.15.0"

@Albert221
Copy link
Author

@RuoLiDevelop that's a workaround, yes, but I'm opting for a solution

@monsieurtanuki
Copy link
Contributor

Probably fixed by #1897

@JaffaKetchup JaffaKetchup changed the title [BUG] Too high meta dependency constraint [BUG] Too high package:meta dependency constraint May 30, 2024
@amin79
Copy link

amin79 commented May 31, 2024

Hello. May I know when you have planed to publish the new version?

@JaffaKetchup
Copy link
Member

Hi @amin79,
We're working on a couple more bug fixes, then we should be able to release. For the time being, please use this (#1896 (comment)) workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue reports broken functionality or another error needs triage This new bug report needs reproducing and prioritizing
Projects
Archived in project
5 participants