File tree Expand file tree Collapse file tree 4 files changed +6
-58
lines changed
build_runner_core/lib/src/asset_graph
build_web_compilers/lib/src Expand file tree Collapse file tree 4 files changed +6
-58
lines changed Original file line number Diff line number Diff line change @@ -7,23 +7,19 @@ import 'package:build/build.dart';
77class DuplicateAssetNodeException implements Exception {
88 final String rootPackage;
99 final AssetId assetId;
10- final String initialBuilderLabel ;
11- final String newBuilderLabel ;
10+ final String builder1 ;
11+ final String builder2 ;
1212
1313 DuplicateAssetNodeException (
1414 this .rootPackage,
1515 this .assetId,
16- this .initialBuilderLabel ,
17- this .newBuilderLabel ,
16+ this .builder1 ,
17+ this .builder2 ,
1818 );
1919 @override
2020 String toString () {
21- final friendlyAsset =
22- assetId.package == rootPackage ? assetId.path : assetId.uri;
23- return 'Both $initialBuilderLabel and $newBuilderLabel may output '
24- '$friendlyAsset . Potential outputs must be unique across all builders. '
25- 'See https://github.com/dart-lang/build/blob/master/docs/faq.md'
26- '#why-do-builders-need-unique-outputs' ;
21+ final id = assetId.package == rootPackage ? assetId.path : assetId.uri;
22+ return 'Builders $builder1 and $builder2 outputs collide: $id ' ;
2723 }
2824}
2925
Original file line number Diff line number Diff line change @@ -57,22 +57,6 @@ Future<void> _bootstrapDart2Js(
5757 throwIfUnsupported: true ,
5858 ))..add (module);
5959 } on UnsupportedModules catch (e) {
60- var librariesString = (await e.exactLibraries (buildStep).toList ())
61- .map (
62- (lib) => AssetId (
63- lib.id.package,
64- lib.id.path.replaceFirst (moduleLibraryExtension, '.dart' ),
65- ),
66- )
67- .join ('\n ' );
68- log.warning ('''
69- Skipping compiling ${buildStep .inputId } with dart2js because some of its
70- transitive libraries have sdk dependencies that are not supported on this platform:
71-
72- $librariesString
73-
74- https://github.com/dart-lang/build/blob/master/docs/faq.md#how-can-i-resolve-skipped-compiling-warnings
75- ''' );
7660 return ;
7761 }
7862
Original file line number Diff line number Diff line change @@ -78,22 +78,6 @@ Future<Dart2WasmBootstrapResult> _bootstrapDart2Wasm(
7878 throwIfUnsupported: true ,
7979 ))..add (module);
8080 } on UnsupportedModules catch (e) {
81- var librariesString = (await e.exactLibraries (buildStep).toList ())
82- .map (
83- (lib) => AssetId (
84- lib.id.package,
85- lib.id.path.replaceFirst (moduleLibraryExtension, '.dart' ),
86- ),
87- )
88- .join ('\n ' );
89- log.warning ('''
90- Skipping compiling ${buildStep .inputId } with dart2wasm because some of its
91- transitive libraries have sdk dependencies that are not supported on this platform:
92-
93- $librariesString
94-
95- https://github.com/dart-lang/build/blob/master/docs/faq.md#how-can-i-resolve-skipped-compiling-warnings
96- ''' );
9781 return const Dart2WasmBootstrapResult .didNotCompile ();
9882 }
9983
Original file line number Diff line number Diff line change @@ -49,22 +49,6 @@ Future<void> bootstrapDdc(
4949 try {
5050 transitiveJsModules = await _ensureTransitiveJsModules (module, buildStep);
5151 } on UnsupportedModules catch (e) {
52- var librariesString = (await e.exactLibraries (buildStep).toList ())
53- .map (
54- (lib) => AssetId (
55- lib.id.package,
56- lib.id.path.replaceFirst (moduleLibraryExtension, '.dart' ),
57- ),
58- )
59- .join ('\n ' );
60- log.warning ('''
61- Skipping compiling ${buildStep .inputId } with ddc because some of its
62- transitive libraries have sdk dependencies that not supported on this platform:
63-
64- $librariesString
65-
66- https://github.com/dart-lang/build/blob/master/docs/faq.md#how-can-i-resolve-skipped-compiling-warnings
67- ''' );
6852 return ;
6953 }
7054 var jsId = module.primarySource.changeExtension (jsModuleExtension);
You can’t perform that action at this time.
0 commit comments