-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[flutter_tools] null safety mode is used for dill naming #68898
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
[flutter_tools] null safety mode is used for dill naming #68898
Conversation
|
Most of this change is plumbing, because the test config does not use buildInfo mostly. I can refactor that to be a bit easier to follow later (will require updating g3). |
| // Temporary work around until --initialize-from-dill accounts for sound mode. | ||
| // The tool does not know the compilation mode if [NullSafetyMode.autodetect] is | ||
| // selected. | ||
| if (nullSafetyMode == NullSafetyMode.sound) { |
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.
This is the actual fix, everything else is plumbing
| @required bool trackWidgetCreation, | ||
| @required NullSafetyMode nullSafetyMode, | ||
| }) { | ||
| // Temporary work around until --initialize-from-dill accounts for sound mode. |
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.
Could you file an issue for this?
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.
Filled #68901
| String randomSeed, | ||
| @required List<String> extraFrontEndOptions, | ||
| bool nullAssertions = false, | ||
| BuildInfo buildInfo // TODO(jonahwilliams): make the default argument |
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.
nit: missing comma
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 about to head out, if you want to apply this change and re-run CI that is fine - otherwise I can clean this up next week when I make these required and update g3
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.
later is fine.
|
Landing before presubmits are finished to get rollers unblocked. |
Description
A dill compiled in sound/unsound mode cannot be reused in
--initialize-from-dillfor compiling unsound/sound mode. Rename the file if sound mode is detected via command line argument.This does not work in the case of autodetect.
Fixes #68891