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+
15## 3.1.0
26
37- 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';
1111import 'package:build_runner_core/build_runner_core.dart' ;
1212// ignore: implementation_imports
1313import 'package:build_runner_core/src/generate/build_series.dart' ;
14+ import 'package:glob/glob.dart' ;
1415import 'package:logging/logging.dart' ;
1516import 'package:package_config/package_config.dart' ;
1617import 'package:test/test.dart' ;
@@ -312,7 +313,7 @@ Future<TestBuilderResult> testBuilders(
312313 r'web/$web$' ,
313314 ...inputIds
314315 .where ((id) => id.package == package)
315- .map ((id) => id.path),
316+ .map ((id) => Glob . quote ( id.path) ),
316317 ],
317318 },
318319 },
Original file line number Diff line number Diff line change 11name : build_test
22description : Utilities for writing unit tests of Builders.
3- version : 3.1.0
3+ version : 3.1.1-wip
44repository : https://github.com/dart-lang/build/tree/master/build_test
55resolution : workspace
66
Original file line number Diff line number Diff line change @@ -356,6 +356,18 @@ Future<void> main() async {
356356 outputs: {'a|foo.out' : 'new input' },
357357 );
358358 });
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+ });
359371}
360372
361373/// Concatenates the contents of multiple text files into a single output.
You can’t perform that action at this time.
0 commit comments