Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion build_daemon/example/example.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ void main(List<String> args) async {
'run',
'build_runner',
'daemon',
'--delete-conflicting-outputs',
], logHandler: print);
} catch (e) {
if (e is VersionSkew) {
Expand Down
7 changes: 1 addition & 6 deletions build_modules/test/build_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ void main() {
expect(_changedGeneratedFiles(), isEmpty);

// 2 - run build - should be no output, since nothing should change
var result = _runProc('dart', [
'run',
'build_runner',
'build',
'--delete-conflicting-outputs',
]);
var result = _runProc('dart', ['run', 'build_runner', 'build']);
expect(result, contains(BuildLog.successPattern));

// 3 - get a list of modified `.g.dart` files - should still be empty
Expand Down
3 changes: 0 additions & 3 deletions build_runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ The available commands are `build`, `watch`, `serve`, and `test`.
All the above commands support the following arguments:

- `--help`: Print usage information for the command.
- `--delete-conflicting-outputs`: Assume conflicting outputs in the users
package are from previous builds, and skip the user prompt that would usually
be provided.
- `--[no-]fail-on-severe`: Whether to consider the build a failure on an error
logged. By default this is false.
- `--build-filter`: Build filters allow you to choose explicitly which files to
Expand Down
12 changes: 2 additions & 10 deletions build_runner/test/generate/build_integration_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,7 @@ main(List<String> args) async {
]).create();

// Run a build and validate the full rebuild output.
var result = await runDart(
'a',
'tool/build.dart',
args: ['build', '--delete-conflicting-outputs'],
);
var result = await runDart('a', 'tool/build.dart', args: ['build']);
expect(result.exitCode, 0, reason: result.stderr as String);
expect(
result.stdout,
Expand All @@ -90,11 +86,7 @@ main(List<String> args) async {
d.dir('tool', [d.file('build.dart', changedBuildScript)]),
]).create();

var result = await runDart(
'a',
'tool/build.dart',
args: ['build', '--delete-conflicting-outputs'],
);
var result = await runDart('a', 'tool/build.dart', args: ['build']);
expect(result.exitCode, 0, reason: result.stderr as String);
expect(
result.stdout,
Expand Down
2 changes: 1 addition & 1 deletion build_runner/test/generate/watch_integration_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import 'package:build_runner_core/build_runner_core.dart';
import 'package:build_test/build_test.dart';

main() async {
await run(['watch', '--delete-conflicting-outputs', '-o', 'output_dir'], [
await run(['watch', '-o', 'output_dir'], [
applyToRoot(new TestBuilder(
buildExtensions: appendExtension('.copy', from: '.txt')))
]);
Expand Down
Loading