-
Notifications
You must be signed in to change notification settings - Fork 29.8k
[null-safety] update tests and tool auto-detection for null safe dart #69405
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
[null-safety] update tests and tool auto-detection for null safe dart #69405
Conversation
zanderso
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm w/o the roll
| final LanguageVersion languageVersion = target != null | ||
| ? packageConfig?.packageOf(Uri.parse(target))?.languageVersion | ||
| : null; | ||
| final bool isNullSafe = languageVersion != null && languageVersion.major >= 2 && languageVersion.minor >= 11; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A null language version is supposed to mean opt in, fwiw (it means current language version)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks - updated to be null safe if the language version is null or is gte 2.11
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How are we going to handle the 2.12 flip here? That will be the sdk where its actually turned on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll file an issue to adjust the constraints. This is only an approximation of the autodetect logic, so its going to have some holes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…er into roll_1231212123asdas
| ], | ||
| ); | ||
|
|
||
| // The flutter-tester device cannot be run concurrently in the same project directory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm disabling these tests because they are timing out but only on CI
Description
Fixes auto-detection of sound mode in web projects