Skip to content
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

Merged
merged 1 commit into from
Apr 27, 2018

Conversation

alorenzen
Copy link
Contributor

Closes #44

@alorenzen alorenzen requested a review from kevmoo April 24, 2018 21:56
Copy link
Member

@kevmoo kevmoo left a 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 {
Copy link
Member

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...

Copy link
Contributor Author

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());
Copy link
Member

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@alorenzen
Copy link
Contributor Author

PTAL.

@kevmoo
Copy link
Member

kevmoo commented Apr 27, 2018

@alorenzen – going to merge on red. Will fix the unrelated test failure in a follow-up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants