Skip to content

Commit ae3eb0f

Browse files
committed
Update to latest build_runner - with fix for checked mode
1 parent d37fe8a commit ae3eb0f

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

json_serializable/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ dependencies:
1616
path: ^1.3.2
1717
source_gen: ^0.7.1
1818
dev_dependencies:
19-
build_runner: ^0.6.0
19+
build_runner: ^0.6.0+1
2020
build_test: ^0.9.0
2121
collection: ^1.14.0
2222
dart_style: ^1.0.0

json_serializable/test/ensure_build_test.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@ void main() {
2525

2626
test('ensure local build succeeds with no changes', () {
2727
// 1 - get a list of modified `.g.dart` files - should be empty
28-
//expect(_changedGeneratedFiles(), isEmpty);
28+
expect(_changedGeneratedFiles(), isEmpty);
2929

3030
// 2 - run build - should be no output, since nothing should change
31-
// TODO(kevmoo): run checked after github.com/dart-lang/build/issues/566
32-
// is fixed
33-
var result = _runProc('dart', ['tool/build.dart']);
31+
var result = _runProc('dart', ['--checked', 'tool/build.dart']);
3432
expect(result,
3533
contains(new RegExp(r'Build: Succeeded after \S+ with \d+ outputs')));
3634

0 commit comments

Comments
 (0)