File tree Expand file tree Collapse file tree 5 files changed +20
-1
lines changed Expand file tree Collapse file tree 5 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -136,11 +136,16 @@ final _builders = <_i1.BuilderApplication>[
136
136
_i1.toAllPackages (),
137
137
isOptional: true ,
138
138
hideOutput: true ,
139
+ appliesBuilders: const [r'build_resolvers:transitive_digest_cleanup' ],
139
140
),
140
141
_i1.applyPostProcess (
141
142
r'build_modules:module_cleanup' ,
142
143
_i6.moduleCleanup,
143
144
),
145
+ _i1.applyPostProcess (
146
+ r'build_resolvers:transitive_digest_cleanup' ,
147
+ _i8.transitiveDigestCleanup,
148
+ ),
144
149
_i1.applyPostProcess (
145
150
r'build_web_compilers:dart2js_archive_extractor' ,
146
151
_i3.dart2jsArchiveExtractor,
Original file line number Diff line number Diff line change
1
+ ## 2.4.2
2
+
3
+ - Add a builder to clean up transitive digest files from the build output.
4
+
1
5
## 2.4.1
2
6
3
7
- Fix an issue where deleted files were not removed from the analysis engine,
Original file line number Diff line number Diff line change @@ -10,3 +10,9 @@ builders:
10
10
is_optional : True
11
11
required_inputs : [".dart"]
12
12
build_to : cache
13
+ applies_builders :
14
+ - :transitive_digest_cleanup
15
+ post_process_builders :
16
+ transitive_digest_cleanup :
17
+ import : " package:build_resolvers/builder.dart"
18
+ builder_factory : transitiveDigestCleanup
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ import 'src/build_asset_uri_resolver.dart';
12
12
13
13
Builder transitiveDigestsBuilder (_) => _TransitiveDigestsBuilder ();
14
14
15
+ PostProcessBuilder transitiveDigestCleanup (BuilderOptions options) =>
16
+ FileDeletingBuilder ([transitiveDigestExtension],
17
+ isEnabled: options.config['enabled' ] as bool ? ?? true );
18
+
15
19
/// Computes a digest comprised of the current libraries digest as well as its
16
20
/// transitive dependency digests, and writes it to a file next to the library.
17
21
///
Original file line number Diff line number Diff line change 1
1
name : build_resolvers
2
- version : 2.4.1
2
+ version : 2.4.2
3
3
description : Resolve Dart code in a Builder
4
4
repository : https://github.com/dart-lang/build/tree/master/build_resolvers
5
5
You can’t perform that action at this time.
0 commit comments