Closed TimWhiting closed 3 years ago
Hi @knuesel
I've migrated to nullsafety on a branch of this repository and the gendart repository. I've tested it out with the simple examples in our tests & your simple action in test_dart. However, I'm not super confident about the actions migration since I don't use actions much.
If you could test it out and make sure everything is working that would be great!
I waited for everything except the dartx dependency to migrate since I'm fairly confident an update in dartx will have very little effect on nullsafety in this package. Until dartx gets the null safe version published you have to run in not sound nullsafety mode.
e.g. dart --no-sound-null-safety test
.
I'll wait to close this issue until its been more thoroughly tested. However prerelease versions of dartros and the message packages are already published to pub.dev.
Nice work! I could migrate my (very small) code without issue.
Now that dartx has migrated, do you think this can be merged in master?
I'm working on migrating some of our code to use the null-safe dartros, technically I think we could use the null-safe version even without migrating our own code, but because of some dependency conflicts it would mean that I would have to have a ton of dependency_overrides. Until I have that finalized I'm going to keep null-safety in a separate branch, but I'll publish a null-safe stable release to pub with the latest dartx.
Currently blocked on null-safe stable releases of buffer
, logger
and string_validator
, I'll probably drop the string_validator
dependency, but I'll submit an issue on the other repositories.
Stable null-safe version published as 0.1.0
. Leaving this issue open for tracking merging into master once I update our code that uses it, in case I need to patch anything on the old version if we run into issues.
I've been watching the progress on dart's null safety. My opinion is that we migrate as soon as possible. But I should probably wait for some of the dependencies to be migrated first in case their apis change as a result of migrating.
Here is the output of
pub outdated --mode=null-safety
as of Nov 19th: There are a few dependencies that I could probably get rid of, and eventually I'll have to update the code generation for messages. So it will probably be at least a little while.