@@ -4037,10 +4037,18 @@ fn one_unpublishable_package() {
4037
4037
p. cargo ( "publish -Zpackage-workspace" )
4038
4038
. masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
4039
4039
. replace_crates_io ( registry. index_url ( ) )
4040
- . with_status ( 101 )
4041
4040
. with_stderr_data ( str![ [ r#"
4042
- [ERROR] `main` cannot be published.
4043
- `package.publish` must be set to `true` or a non-empty list in Cargo.toml to publish.
4041
+ [UPDATING] crates.io index
4042
+ [PACKAGING] dep v0.1.0 ([ROOT]/foo/dep)
4043
+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
4044
+ [VERIFYING] dep v0.1.0 ([ROOT]/foo/dep)
4045
+ [COMPILING] dep v0.1.0 ([ROOT]/foo/target/package/dep-0.1.0)
4046
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
4047
+ [UPLOADING] dep v0.1.0 ([ROOT]/foo/dep)
4048
+ [UPLOADED] dep v0.1.0 to registry `crates-io`
4049
+ [NOTE] waiting for `dep v0.1.0` to be available at registry `crates-io`.
4050
+ You may press ctrl-c to skip waiting; the crate should be available shortly.
4051
+ [PUBLISHED] dep v0.1.0 at registry `crates-io`
4044
4052
4045
4053
"# ] ] )
4046
4054
. run ( ) ;
@@ -4109,10 +4117,18 @@ fn virtual_ws_with_multiple_unpublishable_package() {
4109
4117
p. cargo ( "publish -Zpackage-workspace" )
4110
4118
. masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
4111
4119
. replace_crates_io ( registry. index_url ( ) )
4112
- . with_status ( 101 )
4113
4120
. with_stderr_data ( str![ [ r#"
4114
- [ERROR] `dep`, `main` cannot be published.
4115
- `package.publish` must be set to `true` or a non-empty list in Cargo.toml to publish.
4121
+ [UPDATING] crates.io index
4122
+ [PACKAGING] publishable v0.1.0 ([ROOT]/foo/publishable)
4123
+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
4124
+ [VERIFYING] publishable v0.1.0 ([ROOT]/foo/publishable)
4125
+ [COMPILING] publishable v0.1.0 ([ROOT]/foo/target/package/publishable-0.1.0)
4126
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
4127
+ [UPLOADING] publishable v0.1.0 ([ROOT]/foo/publishable)
4128
+ [UPLOADED] publishable v0.1.0 to registry `crates-io`
4129
+ [NOTE] waiting for `publishable v0.1.0` to be available at registry `crates-io`.
4130
+ You may press ctrl-c to skip waiting; the crate should be available shortly.
4131
+ [PUBLISHED] publishable v0.1.0 at registry `crates-io`
4116
4132
4117
4133
"# ] ] )
4118
4134
. run ( ) ;
@@ -4173,10 +4189,18 @@ fn workspace_flag_with_unpublishable_packages() {
4173
4189
p. cargo ( "publish --workspace -Zpackage-workspace" )
4174
4190
. masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
4175
4191
. replace_crates_io ( registry. index_url ( ) )
4176
- . with_status ( 101 )
4177
4192
. with_stderr_data ( str![ [ r#"
4178
- [ERROR] `non-publishable`, `cwd` cannot be published.
4179
- `package.publish` must be set to `true` or a non-empty list in Cargo.toml to publish.
4193
+ [UPDATING] crates.io index
4194
+ [PACKAGING] publishable v0.0.0 ([ROOT]/foo/publishable)
4195
+ [PACKAGED] 4 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
4196
+ [VERIFYING] publishable v0.0.0 ([ROOT]/foo/publishable)
4197
+ [COMPILING] publishable v0.0.0 ([ROOT]/foo/target/package/publishable-0.0.0)
4198
+ [FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s
4199
+ [UPLOADING] publishable v0.0.0 ([ROOT]/foo/publishable)
4200
+ [UPLOADED] publishable v0.0.0 to registry `crates-io`
4201
+ [NOTE] waiting for `publishable v0.0.0` to be available at registry `crates-io`.
4202
+ You may press ctrl-c to skip waiting; the crate should be available shortly.
4203
+ [PUBLISHED] publishable v0.0.0 at registry `crates-io`
4180
4204
4181
4205
"# ] ] )
4182
4206
. run ( ) ;
@@ -4233,8 +4257,15 @@ fn unpublishable_package_as_versioned_dev_dep() {
4233
4257
. replace_crates_io ( registry. index_url ( ) )
4234
4258
. with_status ( 101 )
4235
4259
. with_stderr_data ( str![ [ r#"
4236
- [ERROR] `dep` cannot be published.
4237
- `package.publish` must be set to `true` or a non-empty list in Cargo.toml to publish.
4260
+ [UPDATING] crates.io index
4261
+ [PACKAGING] main v0.0.1 ([ROOT]/foo/main)
4262
+ [UPDATING] crates.io index
4263
+ [ERROR] failed to prepare local package for uploading
4264
+
4265
+ Caused by:
4266
+ no matching package named `dep` found
4267
+ location searched: crates.io index
4268
+ required by package `main v0.0.1 ([ROOT]/foo/main)`
4238
4269
4239
4270
"# ] ] )
4240
4271
. run ( ) ;
@@ -4244,8 +4275,15 @@ fn unpublishable_package_as_versioned_dev_dep() {
4244
4275
. replace_crates_io ( registry. index_url ( ) )
4245
4276
. with_status ( 101 )
4246
4277
. with_stderr_data ( str![ [ r#"
4247
- [ERROR] `dep` cannot be published.
4248
- `package.publish` must be set to `true` or a non-empty list in Cargo.toml to publish.
4278
+ [UPDATING] crates.io index
4279
+ [PACKAGING] main v0.0.1 ([ROOT]/foo/main)
4280
+ [UPDATING] crates.io index
4281
+ [ERROR] failed to prepare local package for uploading
4282
+
4283
+ Caused by:
4284
+ no matching package named `dep` found
4285
+ location searched: crates.io index
4286
+ required by package `main v0.0.1 ([ROOT]/foo/main)`
4249
4287
4250
4288
"# ] ] )
4251
4289
. run ( ) ;
@@ -4255,8 +4293,15 @@ fn unpublishable_package_as_versioned_dev_dep() {
4255
4293
. replace_crates_io ( registry. index_url ( ) )
4256
4294
. with_status ( 101 )
4257
4295
. with_stderr_data ( str![ [ r#"
4258
- [ERROR] `dep` cannot be published.
4259
- `package.publish` must be set to `true` or a non-empty list in Cargo.toml to publish.
4296
+ [UPDATING] crates.io index
4297
+ [PACKAGING] main v0.0.1 ([ROOT]/foo/main)
4298
+ [UPDATING] crates.io index
4299
+ [ERROR] failed to prepare local package for uploading
4300
+
4301
+ Caused by:
4302
+ no matching package named `dep` found
4303
+ location searched: crates.io index
4304
+ required by package `main v0.0.1 ([ROOT]/foo/main)`
4260
4305
4261
4306
"# ] ] )
4262
4307
. run ( ) ;
@@ -4307,10 +4352,8 @@ fn all_unpublishable_packages() {
4307
4352
p. cargo ( "publish --workspace -Zpackage-workspace" )
4308
4353
. masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
4309
4354
. replace_crates_io ( registry. index_url ( ) )
4310
- . with_status ( 101 )
4311
4355
. with_stderr_data ( str![ [ r#"
4312
- [ERROR] `non-publishable1`, `non-publishable2` cannot be published.
4313
- `package.publish` must be set to `true` or a non-empty list in Cargo.toml to publish.
4356
+ [UPDATING] crates.io index
4314
4357
4315
4358
"# ] ] )
4316
4359
. run ( ) ;
0 commit comments