-
Notifications
You must be signed in to change notification settings - Fork 75
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
Set --fail-on-severe
always for webdev build
.
#45
Conversation
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.
Please add an entry to the changelog, too!
@@ -68,14 +68,15 @@ abstract class CommandBase extends Command<int> { | |||
return arguments; | |||
} | |||
|
|||
Future<int> runCore(String command) async { | |||
Future<int> runCore(String command, | |||
{List<String> extraArgs = const []}) async { |
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'd leave the default value unset here...
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.
done
await checkPubspecLock( | ||
requireBuildWebCompilers: | ||
argResults[_requireBuildWebCompilers] as bool); | ||
|
||
var buildRunnerScript = await _buildRunnerScript(); | ||
|
||
final arguments = [command]..addAll(getArgs()); | ||
final arguments = [command]..addAll(extraArgs)..addAll(getArgs()); |
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.
and use extraArgs ?? const []
here.
Super paranoid handling of someone passing runCore('foo', extraArgs: null)
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.
done
4571a3a
to
d2ec16a
Compare
PTAL. |
@alorenzen – going to merge on red. Will fix the unrelated test failure in a follow-up |
Closes #44