@@ -160,6 +160,15 @@ fn inherit_own_workspace_fields() {
160
160
. file ( "bar.txt" , "" ) // should be included when packaging
161
161
. build ( ) ;
162
162
163
+ // HACK: Inject `foo` directly into the index so `publish` won't block for it to be in
164
+ // the index.
165
+ //
166
+ // This is to ensure we can verify the Summary we post to the registry as doing so precludes
167
+ // the registry from processing the publish.
168
+ Package :: new ( "foo" , "1.2.3" )
169
+ . file ( "src/lib.rs" , "" )
170
+ . publish ( ) ;
171
+
163
172
p. cargo ( "publish" )
164
173
. replace_crates_io ( registry. index_url ( ) )
165
174
. run ( ) ;
@@ -287,6 +296,16 @@ fn inherit_own_dependencies() {
287
296
assert ! ( lockfile. contains( "dep" ) ) ;
288
297
assert ! ( lockfile. contains( "dep-dev" ) ) ;
289
298
assert ! ( lockfile. contains( "dep-build" ) ) ;
299
+
300
+ // HACK: Inject `bar` directly into the index so `publish` won't block for it to be in
301
+ // the index.
302
+ //
303
+ // This is to ensure we can verify the Summary we post to the registry as doing so precludes
304
+ // the registry from processing the publish.
305
+ Package :: new ( "bar" , "0.2.0" )
306
+ . file ( "src/lib.rs" , "" )
307
+ . publish ( ) ;
308
+
290
309
p. cargo ( "publish" )
291
310
. replace_crates_io ( registry. index_url ( ) )
292
311
. run ( ) ;
@@ -411,6 +430,16 @@ fn inherit_own_detailed_dependencies() {
411
430
p. cargo ( "check" ) . run ( ) ;
412
431
let lockfile = p. read_lockfile ( ) ;
413
432
assert ! ( lockfile. contains( "dep" ) ) ;
433
+
434
+ // HACK: Inject `bar` directly into the index so `publish` won't block for it to be in
435
+ // the index.
436
+ //
437
+ // This is to ensure we can verify the Summary we post to the registry as doing so precludes
438
+ // the registry from processing the publish.
439
+ Package :: new ( "bar" , "0.2.0" )
440
+ . file ( "src/lib.rs" , "" )
441
+ . publish ( ) ;
442
+
414
443
p. cargo ( "publish" )
415
444
. replace_crates_io ( registry. index_url ( ) )
416
445
. run ( ) ;
@@ -628,6 +657,15 @@ fn inherit_workspace_fields() {
628
657
. file ( "bar/bar.txt" , "" ) // should be included when packaging
629
658
. build ( ) ;
630
659
660
+ // HACK: Inject `bar` directly into the index so `publish` won't block for it to be in
661
+ // the index.
662
+ //
663
+ // This is to ensure we can verify the Summary we post to the registry as doing so precludes
664
+ // the registry from processing the publish.
665
+ Package :: new ( "bar" , "1.2.3" )
666
+ . file ( "src/lib.rs" , "" )
667
+ . publish ( ) ;
668
+
631
669
p. cargo ( "publish" )
632
670
. replace_crates_io ( registry. index_url ( ) )
633
671
. cwd ( "bar" )
@@ -763,6 +801,16 @@ fn inherit_dependencies() {
763
801
assert ! ( lockfile. contains( "dep" ) ) ;
764
802
assert ! ( lockfile. contains( "dep-dev" ) ) ;
765
803
assert ! ( lockfile. contains( "dep-build" ) ) ;
804
+
805
+ // HACK: Inject `bar` directly into the index so `publish` won't block for it to be in
806
+ // the index.
807
+ //
808
+ // This is to ensure we can verify the Summary we post to the registry as doing so precludes
809
+ // the registry from processing the publish.
810
+ Package :: new ( "bar" , "0.2.0" )
811
+ . file ( "src/lib.rs" , "" )
812
+ . publish ( ) ;
813
+
766
814
p. cargo ( "publish" )
767
815
. replace_crates_io ( registry. index_url ( ) )
768
816
. cwd ( "bar" )
0 commit comments