@@ -434,10 +434,10 @@ void main() {
434
434
File (archivePath).writeAsStringSync ('archive contents' );
435
435
final Map <String , List <ProcessResult >?> calls = < String , List <ProcessResult >? > {
436
436
// This process fails because the file does NOT already exist
437
+ '$gsutilCall -- cp $gsJsonPath $jsonPath ' : null ,
437
438
'$gsutilCall -- stat $gsArchivePath ' : < ProcessResult > [ProcessResult (0 , 1 , '' , '' )],
438
439
'$gsutilCall -- rm $gsArchivePath ' : null ,
439
440
'$gsutilCall -- -h Content-Type:$archiveMime cp $archivePath $gsArchivePath ' : null ,
440
- '$gsutilCall -- cp $gsJsonPath $jsonPath ' : null ,
441
441
'$gsutilCall -- rm $gsJsonPath ' : null ,
442
442
'$gsutilCall -- -h Content-Type:application/json -h Cache-Control:max-age=60 cp $jsonPath $gsJsonPath ' : null ,
443
443
};
@@ -461,6 +461,7 @@ void main() {
461
461
platform: platform,
462
462
);
463
463
assert (tempDir.existsSync ());
464
+ await publisher.generateLocalMetadata ();
464
465
await publisher.publishArchive ();
465
466
466
467
final File releaseFile = File (jsonPath);
@@ -534,10 +535,10 @@ void main() {
534
535
File (archivePath).writeAsStringSync ('archive contents' );
535
536
final Map <String , List <ProcessResult >?> calls = < String , List <ProcessResult >? > {
536
537
// This process fails because the file does NOT already exist
538
+ '$gsutilCall -- cp $gsJsonPath $jsonPath ' : null ,
537
539
'$gsutilCall -- stat $gsArchivePath ' : < ProcessResult > [ProcessResult (0 , 1 , '' , '' )],
538
540
'$gsutilCall -- rm $gsArchivePath ' : null ,
539
541
'$gsutilCall -- -h Content-Type:$archiveMime cp $archivePath $gsArchivePath ' : null ,
540
- '$gsutilCall -- cp $gsJsonPath $jsonPath ' : null ,
541
542
'$gsutilCall -- rm $gsJsonPath ' : null ,
542
543
'$gsutilCall -- -h Content-Type:application/json -h Cache-Control:max-age=60 cp $jsonPath $gsJsonPath ' : null ,
543
544
};
@@ -561,6 +562,7 @@ void main() {
561
562
platform: platform,
562
563
);
563
564
assert (tempDir.existsSync ());
565
+ await publisher.generateLocalMetadata ();
564
566
await publisher.publishArchive ();
565
567
566
568
final File releaseFile = File (jsonPath);
@@ -598,10 +600,10 @@ void main() {
598
600
File (archivePath).writeAsStringSync ('archive contents' );
599
601
final Map <String , List <ProcessResult >?> calls = < String , List <ProcessResult >? > {
600
602
// This process fails because the file does NOT already exist
603
+ '$gsutilCall -- cp $gsJsonPath $jsonPath ' : null ,
601
604
'$gsutilCall -- stat $gsArchivePath ' : < ProcessResult > [ProcessResult (0 , 1 , '' , '' )],
602
605
'$gsutilCall -- rm $gsArchivePath ' : null ,
603
606
'$gsutilCall -- -h Content-Type:$archiveMime cp $archivePath $gsArchivePath ' : null ,
604
- '$gsutilCall -- cp $gsJsonPath $jsonPath ' : null ,
605
607
'$gsutilCall -- rm $gsJsonPath ' : null ,
606
608
'$gsutilCall -- -h Content-Type:application/json -h Cache-Control:max-age=60 cp $jsonPath $gsJsonPath ' : null ,
607
609
};
@@ -625,6 +627,7 @@ void main() {
625
627
platform: platform,
626
628
);
627
629
assert (tempDir.existsSync ());
630
+ await publisher.generateLocalMetadata ();
628
631
await publisher.publishArchive ();
629
632
630
633
final File releaseFile = File (jsonPath);
@@ -678,10 +681,10 @@ void main() {
678
681
File (archivePath).writeAsStringSync ('archive contents' );
679
682
final Map <String , List <ProcessResult >?> calls = < String , List <ProcessResult >? > {
680
683
// This process fails because the file does NOT already exist
684
+ '$gsutilCall -- cp $gsJsonPath $jsonPath ' : null ,
681
685
'$gsutilCall -- stat $gsArchivePath ' : < ProcessResult > [ProcessResult (0 , 1 , '' , '' )],
682
686
'$gsutilCall -- rm $gsArchivePath ' : null ,
683
687
'$gsutilCall -- -h Content-Type:$archiveMime cp $archivePath $gsArchivePath ' : null ,
684
- '$gsutilCall -- cp $gsJsonPath $jsonPath ' : null ,
685
688
'$gsutilCall -- rm $gsJsonPath ' : null ,
686
689
'$gsutilCall -- -h Content-Type:application/json -h Cache-Control:max-age=60 cp $jsonPath $gsJsonPath ' : null ,
687
690
};
@@ -705,6 +708,7 @@ void main() {
705
708
platform: platform,
706
709
);
707
710
assert (tempDir.existsSync ());
711
+ await publisher.generateLocalMetadata ();
708
712
await publisher.publishArchive ();
709
713
710
714
final File releaseFile = File (jsonPath);
@@ -799,14 +803,15 @@ void main() {
799
803
File (jsonPath).writeAsStringSync (releasesJson);
800
804
File (archivePath).writeAsStringSync ('archive contents' );
801
805
final Map <String , List <ProcessResult >?> calls = < String , List <ProcessResult >? > {
806
+ '$gsutilCall -- cp $gsJsonPath $jsonPath ' : null ,
802
807
'$gsutilCall -- rm $gsArchivePath ' : null ,
803
808
'$gsutilCall -- -h Content-Type:$archiveMime cp $archivePath $gsArchivePath ' : null ,
804
- '$gsutilCall -- cp $gsJsonPath $jsonPath ' : null ,
805
809
'$gsutilCall -- rm $gsJsonPath ' : null ,
806
810
'$gsutilCall -- -h Content-Type:application/json -h Cache-Control:max-age=60 cp $jsonPath $gsJsonPath ' : null ,
807
811
};
808
812
processManager.addCommands (convertResults (calls));
809
813
assert (tempDir.existsSync ());
814
+ await publisher.generateLocalMetadata ();
810
815
await publisher.publishArchive (true );
811
816
});
812
817
});
0 commit comments