-
Notifications
You must be signed in to change notification settings - Fork 28.7k
Add web workflow to default validators #39006
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
Add web workflow to default validators #39006
Conversation
@@ -845,3 +859,4 @@ class VsCodeValidatorTestTargets extends VsCodeValidator { | |||
} | |||
|
|||
class MockProcessManager extends Mock implements ProcessManager {} | |||
class MockPlatform extends Mock implements Platform {} |
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.
Is this used?
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.
Nope, fixed
Codecov Report
@@ Coverage Diff @@
## master #39006 +/- ##
==========================================
+ Coverage 55.41% 56.42% +1.01%
==========================================
Files 195 195
Lines 18345 18294 -51
==========================================
+ Hits 10165 10322 +157
+ Misses 8180 7972 -208
Continue to review full report at Codecov.
|
@@ -113,6 +113,9 @@ class _DefaultDoctorValidatorsProvider implements DoctorValidatorsProvider { | |||
if (windowsWorkflow.appliesToHostPlatform) | |||
_workflows.add(windowsWorkflow); | |||
|
|||
if (webWorkflow.appliesToHostPlatform) |
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.
(optional, nit) switch to new syntax.
return _workflows ??= <Workflow>[
if (iosWorkflow.appliesToHostPlatform) iosWorkflow,
if (androidWorkflow.appliesToHostPlatform) androidWorkflow,
...
];
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.
Worth doing, but there are some timing constraints with this fix...
Description
The WebWorkflow was missing from the doctor validators. This would prevent a user that has an available "web device" from running flutter if they didn't have any other functioning devices.
Discovered by @natebosch