Skip to content

Commit

Permalink
Bump dependency on frontend_server_client (#3383)
Browse files Browse the repository at this point in the history
Rely on non-null result from `compile`.
  • Loading branch information
natebosch committed Oct 18, 2022
1 parent 7ef04f8 commit 8578d15
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions build_runner/CHANGELOG.md
@@ -1,3 +1,7 @@
## 2.3.1

- Upgrade to `frontend_service_client` version 3.

## 2.3.0

- Add `-d` as a shorthand for `--delete-conflicting-outputs`.
Expand Down
8 changes: 3 additions & 5 deletions build_runner/lib/src/build_script_generate/bootstrap.dart
Expand Up @@ -165,14 +165,12 @@ Future<int> _createKernelIfNeeded(Logger logger) async {
await logTimedAsync(logger, 'Precompiling build script...', () async {
try {
final result = await client.compile();
hadErrors = result == null ||
result.errorCount > 0 ||
!(await kernelCacheFile.exists());
hadErrors = result.errorCount > 0 || !(await kernelCacheFile.exists());

// Note: We're logging all output with a single log call to keep
// annotated source spans intact.
final logOutput = result?.compilerOutputLines.join('\n');
if (logOutput != null && logOutput.isNotEmpty) {
final logOutput = result.compilerOutputLines.join('\n');
if (logOutput.isNotEmpty) {
hadOutput = true;
if (hadErrors) {
// Always show compiler output if there were errors
Expand Down
4 changes: 2 additions & 2 deletions build_runner/pubspec.yaml
@@ -1,5 +1,5 @@
name: build_runner
version: 2.3.0
version: 2.3.1
description: A build system for Dart code generation and modular compilation.
repository: https://github.com/dart-lang/build/tree/master/build_runner

Expand All @@ -19,7 +19,7 @@ dependencies:
collection: ^1.15.0
crypto: ^3.0.0
dart_style: ^2.0.0
frontend_server_client: ^2.1.0
frontend_server_client: ^3.0.0
glob: ^2.0.0
graphs: ^2.0.0
http_multi_server: ^3.0.0
Expand Down

0 comments on commit 8578d15

Please sign in to comment.