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>[
136136 _i1.toAllPackages (),
137137 isOptional: true ,
138138 hideOutput: true ,
139+ appliesBuilders: const [r'build_resolvers:transitive_digest_cleanup' ],
139140 ),
140141 _i1.applyPostProcess (
141142 r'build_modules:module_cleanup' ,
142143 _i6.moduleCleanup,
143144 ),
145+ _i1.applyPostProcess (
146+ r'build_resolvers:transitive_digest_cleanup' ,
147+ _i8.transitiveDigestCleanup,
148+ ),
144149 _i1.applyPostProcess (
145150 r'build_web_compilers:dart2js_archive_extractor' ,
146151 _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+
15## 2.4.1
26
37- 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:
1010 is_optional : True
1111 required_inputs : [".dart"]
1212 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';
1212
1313Builder transitiveDigestsBuilder (_) => _TransitiveDigestsBuilder ();
1414
15+ PostProcessBuilder transitiveDigestCleanup (BuilderOptions options) =>
16+ FileDeletingBuilder ([transitiveDigestExtension],
17+ isEnabled: options.config['enabled' ] as bool ? ?? true );
18+
1519/// Computes a digest comprised of the current libraries digest as well as its
1620/// transitive dependency digests, and writes it to a file next to the library.
1721///
Original file line number Diff line number Diff line change 11name : build_resolvers
2- version : 2.4.1
2+ version : 2.4.2
33description : Resolve Dart code in a Builder
44repository : https://github.com/dart-lang/build/tree/master/build_resolvers
55
You can’t perform that action at this time.
0 commit comments