@@ -6227,19 +6227,41 @@ fn registry_inference_ignores_unpublishable() {
62276227
62286228 p. cargo ( "package -Zpackage-workspace" )
62296229 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
6230- . with_status ( 101 )
62316230 . with_stderr_data ( str![ [ r#"
6232- [ERROR] conflicts between `package.publish` fields in the selected packages
6231+ [PACKAGING] dep v0.1.0 ([ROOT]/foo/dep)
6232+ [PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6233+ [PACKAGING] main v0.0.1 ([ROOT]/foo/main)
6234+ [UPDATING] `alternative` index
6235+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6236+ [VERIFYING] dep v0.1.0 ([ROOT]/foo/dep)
6237+ [COMPILING] dep v0.1.0 ([ROOT]/foo/target/package/dep-0.1.0)
6238+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
6239+ [VERIFYING] main v0.0.1 ([ROOT]/foo/main)
6240+ [UPDATING] `alternative` index
6241+ [UNPACKING] dep v0.1.0 (registry `[ROOT]/foo/target/package/tmp-registry`)
6242+ [COMPILING] dep v0.1.0 (registry `alternative`)
6243+ [COMPILING] main v0.0.1 ([ROOT]/foo/target/package/main-0.0.1)
6244+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
62336245
62346246"# ] ] )
62356247 . run ( ) ;
62366248
62376249 p. cargo ( "package -Zpackage-workspace --registry=alternative" )
62386250 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
6239- . with_status ( 101 )
62406251 . with_stderr_data ( str![ [ r#"
6241- [ERROR] `main` cannot be packaged.
6242- The registry `alternative` is not listed in the `package.publish` value in Cargo.toml.
6252+ [PACKAGING] dep v0.1.0 ([ROOT]/foo/dep)
6253+ [PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6254+ [PACKAGING] main v0.0.1 ([ROOT]/foo/main)
6255+ [UPDATING] `alternative` index
6256+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6257+ [VERIFYING] dep v0.1.0 ([ROOT]/foo/dep)
6258+ [COMPILING] dep v0.1.0 ([ROOT]/foo/target/package/dep-0.1.0)
6259+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
6260+ [VERIFYING] main v0.0.1 ([ROOT]/foo/main)
6261+ [UPDATING] `alternative` index
6262+ [COMPILING] dep v0.1.0 (registry `alternative`)
6263+ [COMPILING] main v0.0.1 ([ROOT]/foo/target/package/main-0.0.1)
6264+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
62436265
62446266"# ] ] )
62456267 . run ( ) ;
@@ -6464,7 +6486,16 @@ fn unpublishable_dependency() {
64646486 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
64656487 . with_status ( 101 )
64666488 . with_stderr_data ( str![ [ r#"
6467- [ERROR] conflicts between `package.publish` fields in the selected packages
6489+ [PACKAGING] dep v0.1.0 ([ROOT]/foo/dep)
6490+ [PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
6491+ [PACKAGING] main v0.0.1 ([ROOT]/foo/main)
6492+ [UPDATING] `alternative` index
6493+ [ERROR] failed to prepare local package for uploading
6494+
6495+ Caused by:
6496+ no matching package named `dep` found
6497+ location searched: registry `alternative`
6498+ required by package `main v0.0.1 ([ROOT]/foo/main)`
64686499
64696500"# ] ] )
64706501 . run ( ) ;
0 commit comments