-
Notifications
You must be signed in to change notification settings - Fork 212
Drop support for unsound null safety in Dart 3 #3424
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
Conversation
Remove entirely the build_vm_compilers package, this should be marked discontinued on pub. Drop all code relating to sound/unsound null safety. Update build_web_compilers, build_vm_compilers, and build_runner to only support 3.x sdks.
cc @nshahan |
cc @simolus3 it looks like drift does still use build_vm_compilers. We are looking at probably discontinuing that package, would that be an issue for you, or is it more legacy? What are you using it for? (note that package:test now uses the frontend_server compiler which is likely faster for vm tests than build_vm_compilers + build_runner test) |
I don't think drift is using But I think the community tests are failing because they're running on Dart 2.18.5, which can't run |
Ah yeah I think it was just the way the tool works it would end up adding in that dependency even if it wasn't previously there. But it no longer overrides that package, so we see the new errors. |
Sending out for review, DDC changes should land soonish. |
@simolus3 it looks like you have a test which isn't opted in yet in drift (test/engines/delegated_database_test.dart). Is there a preferred solution on your end for getting our bots here green? I think we could just skip it (remove it from the preset maybe), or it could be migrated, or open to other suggestions also. |
Sorry for the delayed response, I've missed the comment. As far as I'm concerned, we can temporarily skip the community tests. I will test drift with the latest build runner on a 3.0 dev SDK as soon as this PR is merged. As soon as everything works (it may very well be that drift tests fail in 3.0 for reasons unrelated to I have migrated all tests in that repository to null-safety now, but not on the branch used by the community tests. You could try changing the build/.github/workflows/community.yml Line 21 in bbbe12c
|
@simolus3 thanks, I tried that branch but got errors in the dependency solve, so just commenting out the community jobs for now, happy to restore them once they are working again |
… fixtures to opt in to null safety
Note: This will be broken until the ddc resources move dart-lang/sdk#50700
Remove entirely the build_vm_compilers package, this should be marked discontinued on pub.
Drop all code relating to sound/unsound null safety.
Update build_web_compilers, build_vm_compilers, and build_runner to only
support 3.x sdks.
Point at the new DDC resources in the SDK based on dart-lang/sdk#50700.