Closed
Description
Environment
- Dart SDK version: 2.18.6 (stable) (Tue Dec 13 21:15:14 2022 +0000) on "macos_x64"
- macOS Ventura 13.1
- Are you using the Chinese community mirror or a corporate firewall? NO
Problem
Source: getsentry/sentry-dart#1202
Relates to: flutter/flutter#117163 and dart-lang/i18n#458
\nThe constraint `^0.17.0` on intl does not support the stable version `0.18.0`.\n \n\nTry running `dart pub upgrade --major-versions intl` to update the constraint.\n\n\n### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs\n"
intl: ^0.17.0
Expected behavior
Upgrades to 0.18.0 without problem, since the a transitive dependency is intl: ^0.17.0
and the final app has ^0.18.0
, it is within the range.
Actual behavior
\nThe constraint `^0.17.0` on intl does not support the stable version `0.18.0`.\n \n\nTry running `dart pub upgrade --major-versions intl` to update the constraint.\n\n\n### [*] 10/10 points: Package supports latest stable Dart and Flutter SDKs\n"
Apps that use intl: ^0.18.0
or intl: 0.18.0
and have a transitive dependency with intl: ^0.17.0
should not require a major bump since it's a minor version.
Workaround
If the library does intl: '>=0.17.0 <0.19.0'
or intl: any
would work, but libraries should be able to be more flexible with the minimum and maximum version hence it should be fixed to respect the version bands.
Metadata
Metadata
Assignees
Labels
No labels