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

Make >=2.12 <3.0.0 compatible with dart 3 #3572

Merged
merged 6 commits into from
Oct 5, 2022

Conversation

sigurdm
Copy link
Contributor

@sigurdm sigurdm commented Sep 23, 2022

Fixes #3554

@sigurdm sigurdm marked this pull request as draft September 27, 2022 08:52
@sigurdm sigurdm marked this pull request as ready for review September 30, 2022 12:49
test/dart3_sdk_constraint_hack_test.dart Show resolved Hide resolved
lib/src/pubspec.dart Show resolved Hide resolved
Comment on lines 237 to 241
if (constraint is VersionRange &&
LanguageVersion.fromSdkConstraint(constraint) >=
LanguageVersion.firstVersionWithNullSafety &&
constraint.max == Version(3, 0, 0).firstPreRelease &&
constraint.includeMax == false) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this perhaps a good place to put in a comment explaining what and why we do this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

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

Successfully merging this pull request may close these issues.

pub client: update solver to support language version 2.12 in Dart 3
2 participants