@@ -6028,18 +6028,21 @@ fn registry_inferred_from_unique_option() {
60286028
60296029 p. cargo ( "package -Zpackage-workspace" )
60306030 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
6031- . with_status ( 101 )
60326031 . with_stderr_data ( str![ [ r#"
60336032[PACKAGING] dep v0.1.0 ([ROOT]/foo/dep)
60346033[PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
60356034[PACKAGING] main v0.0.1 ([ROOT]/foo/main)
60366035[UPDATING] `alternative` index
6037- [ERROR] failed to prepare local package for uploading
6038-
6039- Caused by:
6040- no matching package named `dep` found
6041- location searched: registry `alternative`
6042- required by package `main v0.0.1 ([ROOT]/foo/main)`
6036+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6037+ [VERIFYING] dep v0.1.0 ([ROOT]/foo/dep)
6038+ [COMPILING] dep v0.1.0 ([ROOT]/foo/target/package/dep-0.1.0)
6039+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
6040+ [VERIFYING] main v0.0.1 ([ROOT]/foo/main)
6041+ [UPDATING] `alternative` index
6042+ [UNPACKING] dep v0.1.0 (registry `[ROOT]/foo/target/package/tmp-registry`)
6043+ [COMPILING] dep v0.1.0 (registry `alternative`)
6044+ [COMPILING] main v0.0.1 ([ROOT]/foo/target/package/main-0.0.1)
6045+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
60436046
60446047"# ] ] )
60456048 . run ( ) ;
@@ -6100,8 +6103,7 @@ fn registry_not_inferred_because_of_conflict() {
61006103 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
61016104 . with_status ( 101 )
61026105 . with_stderr_data ( str![ [ r#"
6103- [ERROR] `dep` cannot be packaged.
6104- The registry `crates-io` is not listed in the `package.publish` value in Cargo.toml.
6106+ [ERROR] conflicts between `package.publish` fields in the selected packages
61056107
61066108"# ] ] )
61076109 . run ( ) ;
@@ -6121,10 +6123,21 @@ The registry `alternative` is not listed in the `package.publish` value in Cargo
61216123 alt_reg. index_url( )
61226124 ) )
61236125 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
6124- . with_status ( 101 )
61256126 . with_stderr_data ( str![ [ r#"
6126- [ERROR] `dep` cannot be packaged.
6127- The registry `crates-io` is not listed in the `package.publish` value in Cargo.toml.
6127+ [PACKAGING] dep v0.1.0 ([ROOT]/foo/dep)
6128+ [PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6129+ [PACKAGING] main v0.0.1 ([ROOT]/foo/main)
6130+ [UPDATING] `alternative` index
6131+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6132+ [VERIFYING] dep v0.1.0 ([ROOT]/foo/dep)
6133+ [COMPILING] dep v0.1.0 ([ROOT]/foo/target/package/dep-0.1.0)
6134+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
6135+ [VERIFYING] main v0.0.1 ([ROOT]/foo/main)
6136+ [UPDATING] `alternative` index
6137+ [UNPACKING] dep v0.1.0 (registry `[ROOT]/foo/target/package/tmp-registry`)
6138+ [COMPILING] dep v0.1.0 (registry `alternative`)
6139+ [COMPILING] main v0.0.1 ([ROOT]/foo/target/package/main-0.0.1)
6140+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
61286141
61296142"# ] ] )
61306143 . run ( ) ;
@@ -6185,8 +6198,7 @@ fn registry_not_inferred_because_of_multiple_options() {
61856198 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
61866199 . with_status ( 101 )
61876200 . with_stderr_data ( str![ [ r#"
6188- [ERROR] `dep` cannot be packaged.
6189- The registry `crates-io` is not listed in the `package.publish` value in Cargo.toml.
6201+ [ERROR] --registry is required to disambiguate between "alternative" or "alternative2" registries
61906202
61916203"# ] ] )
61926204 . run ( ) ;
@@ -6269,8 +6281,7 @@ fn registry_not_inferred_because_of_mismatch() {
62696281 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
62706282 . with_status ( 101 )
62716283 . with_stderr_data ( str![ [ r#"
6272- [ERROR] `main` cannot be packaged.
6273- The registry `crates-io` is not listed in the `package.publish` value in Cargo.toml.
6284+ [ERROR] --registry is required because not all `package.publish` settings agree
62746285
62756286"# ] ] )
62766287 . run ( ) ;
0 commit comments