-
Notifications
You must be signed in to change notification settings - Fork 231
pub commands do not seem to have a way of opting out of null safety when running on a VM that runs in null safe mode by default #3615
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
Comments
@a-siva is this still necessary? I can't really imagine we'll want anyone to pass this flag to We could, but supporting it would likely involve some hacks, because I see that |
I just tried on my local build of SDK head, and it seems to work:
|
I chat @sigurdm demonstrated that webdev version 2.7.8 has an issue:
But I think we should accept that, since we control most of the packages with issues like this. And most of them have been migrated already. More, importantly, In any case, @a-siva if you think we need this we'll look into adding it. |
I am not familiar with the lay of the land in terms of packages in the ecosystem that have not been migrated yet and would need to function with Dart 3.0.0. |
I don't think using unmigrated code will be possible in 3.0.0. @mit-mit can you confirm? Closing for now |
In 3.0.0 stable that will indeed not be possible at all. There was some debate as to whether we might need the support t resolve these temporarily in alpha, but I think we're nearly there and seem to be able to get there without that support. |
Environment
Problem
pub commands do not seem to have a way of opting out of null safety when running on a VM that runs in null safe mode by default and requires the --no-strong-null-safety flag to be passed explicitly when dealing with packages that are not migrated.
/usr/local/google/home/asiva/workspace/dart-ws2/sdk/out/ReleaseX64/dart-sdk/bin/dart pub global activate webdev
fails as follows:
Please see https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket/8799853107143994081/+/u/test_results/new_test_failures__logs_ for an example of the above failure in a test scenario.
The text was updated successfully, but these errors were encountered: