-
Notifications
You must be signed in to change notification settings - Fork 40
CPLAT-6014 Fix Dart2 RTE #299
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
List<dynamic> is not a valid subtype of List<String> was being thrown when the `args` generated within `_getChildPids` was passed to the `TaskProcess` constructor.
Security InsightsNo security relevant content was detected by automated scans. Action Items
Questions or Comments? Reach out on Slack: #support-infosec. |
19c3d42
to
915cce5
Compare
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.
+1
Not sure if the build failure is related to these changes, so I'm rerunning Travis.
@@ -77,7 +77,7 @@ class TaskProcess { | |||
pids = pids ?? [_process.pid]; | |||
String executable = 'pgrep'; | |||
List<TaskProcess> pgreps = []; | |||
var args = []; | |||
List<String> args = []; |
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.
fyi the other option here would be var/final args = <String>[];
QA +1
@Workiva/release-management-p |
Problem
A RTE is encountered by consumers when utilizing
dart_dev
'sTaskProcess
in Dart 2.This is thrown as a result of the
args
generated within_getChildPids
being passed to theTaskProcess
constructor.Solution
6900490
Boy Scoutin'
.gitignore
to include the.dart_tool
directory@evanweible-wf @corwinsheahan-wf @greglittlefield-wf