File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed
Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1- ## 2.4.7-wip
1+ ## 2.4.7
22
33- Fix broken link in README.md.
44- Bump the min sdk to 3.0.0.
5+ - Add a warning to the ` doctor ` command if a ` build.yml ` file is found (instead
6+ of a ` build.yaml ` file).
57
68## 2.4.6
79
Original file line number Diff line number Diff line change 33// BSD-style license that can be found in the LICENSE file.
44
55import 'dart:async' ;
6+ import 'dart:io' ;
67
78import 'package:build/build.dart' ;
89import 'package:build_config/build_config.dart' ;
@@ -11,6 +12,7 @@ import 'package:build_runner_core/build_runner_core.dart';
1112import 'package:build_runner_core/src/generate/phase.dart' ;
1213import 'package:io/io.dart' ;
1314import 'package:logging/logging.dart' ;
15+ import 'package:path/path.dart' as p;
1416
1517import '../logging/std_io_logging.dart' ;
1618import '../package_graph/build_config_overrides.dart' ;
@@ -40,6 +42,14 @@ class DoctorCommand extends BuildRunnerCommand {
4042 isOk = isOk && builderOk;
4143 }
4244
45+ if (File (p.join (p.current, 'build.yml' )).existsSync () &&
46+ ! File (p.join (p.current, 'build.yaml' )).existsSync ()) {
47+ logger.warning (
48+ 'Found a `build.yml` file but no `build.yaml` file, rename it with '
49+ 'the `.yaml` extension for it to take effect.' );
50+ isOk = false ;
51+ }
52+
4353 if (isOk) {
4454 logger.info ('No problems found!\n ' );
4555 }
Original file line number Diff line number Diff line change 11name : build_runner
2- version : 2.4.7-wip
2+ version : 2.4.7
33description : A build system for Dart code generation and modular compilation.
44repository : https://github.com/dart-lang/build/tree/master/build_runner
55
You can’t perform that action at this time.
0 commit comments