File tree Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Expand file tree Collapse file tree 4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 3.1.1-wip
2
+
3
+ - Bug fix: stop parsing ` testBuilder ` asset paths as globs.
4
+
1
5
## 3.1.0
2
6
3
7
- Add ` inputsTrackedFor ` and ` resolverEntrypointsTrackedFor ` to
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import 'package:build_resolvers/build_resolvers.dart';
11
11
import 'package:build_runner_core/build_runner_core.dart' ;
12
12
// ignore: implementation_imports
13
13
import 'package:build_runner_core/src/generate/build_series.dart' ;
14
+ import 'package:glob/glob.dart' ;
14
15
import 'package:logging/logging.dart' ;
15
16
import 'package:package_config/package_config.dart' ;
16
17
import 'package:test/test.dart' ;
@@ -312,7 +313,7 @@ Future<TestBuilderResult> testBuilders(
312
313
r'web/$web$' ,
313
314
...inputIds
314
315
.where ((id) => id.package == package)
315
- .map ((id) => id.path),
316
+ .map ((id) => Glob . quote ( id.path) ),
316
317
],
317
318
},
318
319
},
Original file line number Diff line number Diff line change 1
1
name : build_test
2
2
description : Utilities for writing unit tests of Builders.
3
- version : 3.1.0
3
+ version : 3.1.1-wip
4
4
repository : https://github.com/dart-lang/build/tree/master/build_test
5
5
resolution : workspace
6
6
Original file line number Diff line number Diff line change @@ -356,6 +356,18 @@ Future<void> main() async {
356
356
outputs: {'a|foo.out' : 'new input' },
357
357
);
358
358
});
359
+
360
+ test ('input paths are not parsed as globs' , () {
361
+ return testBuilder (
362
+ TestBuilder (
363
+ buildExtensions: {
364
+ '.in' : ['.out' ],
365
+ },
366
+ ),
367
+ {'a|[.in' : 'input' },
368
+ outputs: {'a|[.out' : 'input' },
369
+ );
370
+ });
359
371
}
360
372
361
373
/// Concatenates the contents of multiple text files into a single output.
You can’t perform that action at this time.
0 commit comments