@@ -626,10 +626,6 @@ class NativeAssetsBuildRunner {
626
626
) async {
627
627
// Don't invalidate cache with environment changes.
628
628
final environmentForCaching = < String , String > {};
629
- final packageConfigHashable = buildDirUri.resolve (
630
- 'package_config_hashable.json' ,
631
- );
632
- await _makeHashablePackageConfig (packageConfigHashable);
633
629
final kernelFile = _fileSystem.file (buildDirUri.resolve ('hook.dill' ));
634
630
final depFile = _fileSystem.file (buildDirUri.resolve ('hook.dill.d' ));
635
631
final dependenciesHashFile = buildDirUri.resolve (
@@ -673,7 +669,7 @@ class NativeAssetsBuildRunner {
673
669
final modifiedDuringBuild = await dependenciesHashes.hashDependencies (
674
670
[
675
671
...dartSources.where ((e) => e != packageLayout.packageConfigUri),
676
- packageConfigHashable ,
672
+ packageLayout.packageConfigUri ,
677
673
// If the Dart version changed, recompile.
678
674
dartExecutable.resolve ('../version' ),
679
675
],
@@ -686,17 +682,6 @@ class NativeAssetsBuildRunner {
686
682
return Success ((kernelFile, dependenciesHashes));
687
683
}
688
684
689
- Future <void > _makeHashablePackageConfig (Uri uri) async {
690
- final contents =
691
- await _fileSystem.file (packageLayout.packageConfigUri).readAsString ();
692
- final jsonData = jsonDecode (contents) as Map <String , Object ?>;
693
- jsonData.remove ('generated' );
694
- final contentsSanitized = const JsonEncoder .withIndent (
695
- ' ' ,
696
- ).convert (jsonData);
697
- await _fileSystem.file (uri).writeAsString (contentsSanitized);
698
- }
699
-
700
685
Future <Result <void , HooksRunnerFailure >> _compileHookForPackage (
701
686
String packageName,
702
687
Uri scriptUri,
0 commit comments