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
2
2
3
3
- Fix broken link in README.md.
4
4
- 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).
5
7
6
8
## 2.4.6
7
9
Original file line number Diff line number Diff line change 3
3
// BSD-style license that can be found in the LICENSE file.
4
4
5
5
import 'dart:async' ;
6
+ import 'dart:io' ;
6
7
7
8
import 'package:build/build.dart' ;
8
9
import 'package:build_config/build_config.dart' ;
@@ -11,6 +12,7 @@ import 'package:build_runner_core/build_runner_core.dart';
11
12
import 'package:build_runner_core/src/generate/phase.dart' ;
12
13
import 'package:io/io.dart' ;
13
14
import 'package:logging/logging.dart' ;
15
+ import 'package:path/path.dart' as p;
14
16
15
17
import '../logging/std_io_logging.dart' ;
16
18
import '../package_graph/build_config_overrides.dart' ;
@@ -40,6 +42,14 @@ class DoctorCommand extends BuildRunnerCommand {
40
42
isOk = isOk && builderOk;
41
43
}
42
44
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
+
43
53
if (isOk) {
44
54
logger.info ('No problems found!\n ' );
45
55
}
Original file line number Diff line number Diff line change 1
1
name : build_runner
2
- version : 2.4.7-wip
2
+ version : 2.4.7
3
3
description : A build system for Dart code generation and modular compilation.
4
4
repository : https://github.com/dart-lang/build/tree/master/build_runner
5
5
You can’t perform that action at this time.
0 commit comments