Skip to content

Avoid using ^ in pubspec.yaml #25

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

Closed
kuznetsov-from-wonderland opened this issue Sep 11, 2023 · 6 comments
Closed

Avoid using ^ in pubspec.yaml #25

kuznetsov-from-wonderland opened this issue Sep 11, 2023 · 6 comments

Comments

@kuznetsov-from-wonderland

Hey, segment flutter developers

Once again we're seing an issue

make pg
fvm flutter pub get
Resolving dependencies...
Because merchant_app depends on analytics from git which depends on uuid ^4.0.0, uuid ^4.0.0 is required.
So, because merchant_app depends on uuid 3.0.7, version solving failed.

That happens because you use ^ notation in your pubspec.yaml and do not pin your dependencies. Why don't you mind pinning specific versions?

Sad trueth is - this package is the worst maintained enterprise package I ever worked with.

@edsonjab
Copy link
Contributor

Hi @kuznetsov-from-wonderland thank you for your report, we start looking into this.

@maxlapides
Copy link

The cause of the issue here is not the ^, which is standard in Flutter packages. The root cause of the issue is that the merchant_app is fixed to uuid version 3. To resolve the issue, you should update your merchant_app to uuid v4.

@LastMonopoly
Copy link

Hi @edsonjab, @maxlapides

Is it ok to depends on both uuid 3 & 4 like so?
uuid: '>=3.0.0 <5.0.0'

So many popular flutter & dart packages depends on uuid: ^3.0.0

@LastMonopoly
Copy link

Because every version of analytics from git depends on uuid ^4.0.0 and sentry 7.10.1 depends on uuid ^3.0.0, analytics from git is incompatible with sentry 7.10.1.

@LastMonopoly
Copy link

Because share_plus_platform_interface 3.3.0 depends on uuid ^3.0.7 and no versions of share_plus_platform_interface match >3.3.0 <4.0.0, share_plus_platform_interface ^3.3.0 requires uuid ^3.0.7.
And because every version of analytics from git depends on uuid ^4.0.0, analytics from git is incompatible with share_plus_platform_interface ^3.3.0.

@maxlapides
Copy link

Try adding this to your pubspec.yaml file:

dependency_overrides:
  uuid: ^4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants