File tree 4 files changed +22
-15
lines changed
4 files changed +22
-15
lines changed Original file line number Diff line number Diff line change
1
+ ## 2.6.4
2
+
3
+ - Fix compatibility_checker getting stuck (#2091 ).
4
+
1
5
## 2.6.3
2
6
3
7
- Fix invalid JSON output of version check command (#2087 ).
Original file line number Diff line number Diff line change 1
1
/// Version of Patrol CLI. Must be kept in sync with pubspec.yaml.
2
2
/// If you update this, make sure that compatibility-table.mdx is updated (if needed)
3
- const version = '2.6.3 ' ;
3
+ const version = '2.6.4 ' ;
Original file line number Diff line number Diff line change @@ -53,24 +53,27 @@ class CompatibilityChecker {
53
53
)
54
54
..disposedBy (scope);
55
55
56
- process.listenStdOut ((line) async {
57
- if (line.startsWith ('- patrol ' )) {
58
- packageCompleter.complete (line.split (' ' ).last);
59
- }
60
- }).disposedBy (scope);
56
+ process.listenStdOut (
57
+ (line) async {
58
+ if (line.startsWith ('- patrol ' )) {
59
+ packageCompleter.complete (line.split (' ' ).last);
60
+ }
61
+ },
62
+ onDone: () {
63
+ if (! packageCompleter.isCompleted) {
64
+ throwToolExit (
65
+ 'Failed to read patrol version. Make sure you have patrol '
66
+ 'dependency in your pubspec.yaml file' ,
67
+ );
68
+ }
69
+ },
70
+ ).disposedBy (scope);
61
71
});
62
72
63
73
packageVersion = await packageCompleter.future;
64
74
65
- if (packageVersion == null ) {
66
- throwToolExit (
67
- 'Failed to read patrol version. Make sure you have patrol '
68
- 'dependency in your pubspec.yaml file' ,
69
- );
70
- }
71
-
72
75
final cliVersion = Version .parse (constants.version);
73
- final patrolVersion = Version .parse (packageVersion);
76
+ final patrolVersion = Version .parse (packageVersion! );
74
77
75
78
final isCompatible = cliVersion.isCompatibleWith (patrolVersion);
76
79
Original file line number Diff line number Diff line change 1
1
name : patrol_cli
2
2
description : >
3
3
Command-line tool for Patrol, a powerful Flutter-native UI testing framework.
4
- version : 2.6.3 # Must be kept in sync with constants.dart
4
+ version : 2.6.4 # Must be kept in sync with constants.dart
5
5
homepage : https://patrol.leancode.co
6
6
repository : https://github.com/leancodepl/patrol/tree/master/packages/patrol_cli
7
7
issue_tracker : https://github.com/leancodepl/patrol/issues?q=is%3Aopen+is%3Aissue+label%3A%22package%3A+patrol_cli%22
You can’t perform that action at this time.
0 commit comments