Skip to content

Commit 7dc2870

Browse files
authored
New bootstrap code not using dart:mirrors (#4226)
* Rewrite bootstrap code. * Address review comments. * Address review comments.
1 parent 07b5911 commit 7dc2870

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1338
-1363
lines changed

.github/workflows/dart.yml

Lines changed: 91 additions & 125 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build_runner/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
## 2.8.1-wip
22

3-
- Watch mode: handle `build.yaml` changes without restarting.
3+
- Rewrite bootstrap code to remove use of `dart:mirrors`.
4+
- Watch mode: handle builder code and config changes without exiting.
45
- Remove log output about `build_runner` internals.
56
- Print the port that gets picked if you pass 0 for a port number, for example
67
with `dart run build_runner serve web:0`.
78
- Improved warnings when an option is specified for an unknown builder.
89
- Bug fix: require `args` 2.5.0.
9-
- Use `build` ^4.0.0.
1010

1111
## 2.8.0
1212

build_runner/bin/build_runner.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
import 'dart:io';
6+
57
import 'package:build_runner/src/build_runner.dart';
68

7-
Future<void> main(List<String> arguments) =>
8-
BuildRunner(arguments: arguments, builderFactories: null).run();
9+
Future<void> main(List<String> arguments) async {
10+
exitCode =
11+
await BuildRunner(arguments: arguments, builderFactories: null).run();
12+
}

build_runner/dart_test.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
presets:
2-
experiments:
3-
include_tags: experiments
4-
51
tags:
62
integration1:
73
timeout: 4x
@@ -11,6 +7,3 @@ tags:
117
timeout: 4x
128
integration4:
139
timeout: 4x
14-
experiments:
15-
skip: 'Only ran if `-P experiments` is passed'
16-
presets: {experiments: {skip: false}}

build_runner/lib/build_runner.dart

Lines changed: 0 additions & 15 deletions
This file was deleted.

build_runner/lib/src/bootstrap/bootstrap.dart

Lines changed: 0 additions & 260 deletions
This file was deleted.

0 commit comments

Comments
 (0)