@@ -3384,13 +3384,20 @@ fn package_selection() {
3384
3384
p. cargo ( "publish --no-verify --dry-run -Zpackage-workspace --workspace" )
3385
3385
. replace_crates_io ( registry. index_url ( ) )
3386
3386
. masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
3387
- . with_status ( 1 )
3388
3387
. with_stderr_data ( str![ [ r#"
3389
- [ERROR] unexpected argument '--workspace' found
3390
-
3391
- Usage: cargo publish --no-verify --dry-run -Z <FLAG>
3392
-
3393
- For more information, try '--help'.
3388
+ [UPDATING] crates.io index
3389
+ [WARNING] manifest has no description, license, license-file, documentation, homepage or repository.
3390
+ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
3391
+ [PACKAGING] a v0.1.0 ([ROOT]/foo/a)
3392
+ [PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
3393
+ [WARNING] manifest has no description, license, license-file, documentation, homepage or repository.
3394
+ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
3395
+ [PACKAGING] b v0.1.0 ([ROOT]/foo/b)
3396
+ [PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
3397
+ [UPLOADING] a v0.1.0 ([ROOT]/foo/a)
3398
+ [WARNING] aborting upload due to dry run
3399
+ [UPLOADING] b v0.1.0 ([ROOT]/foo/b)
3400
+ [WARNING] aborting upload due to dry run
3394
3401
3395
3402
"# ] ] )
3396
3403
. with_stdout_data ( str![ [ r#""# ] ] )
@@ -3399,13 +3406,20 @@ For more information, try '--help'.
3399
3406
p. cargo ( "publish --no-verify --dry-run -Zpackage-workspace --package a --package b" )
3400
3407
. replace_crates_io ( registry. index_url ( ) )
3401
3408
. masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
3402
- . with_status ( 1 )
3403
3409
. with_stderr_data ( str![ [ r#"
3404
- [ERROR] the argument '--package [<SPEC>]' cannot be used multiple times
3405
-
3406
- Usage: cargo publish [OPTIONS]
3407
-
3408
- For more information, try '--help'.
3410
+ [UPDATING] crates.io index
3411
+ [WARNING] manifest has no description, license, license-file, documentation, homepage or repository.
3412
+ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
3413
+ [PACKAGING] a v0.1.0 ([ROOT]/foo/a)
3414
+ [PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
3415
+ [WARNING] manifest has no description, license, license-file, documentation, homepage or repository.
3416
+ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
3417
+ [PACKAGING] b v0.1.0 ([ROOT]/foo/b)
3418
+ [PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
3419
+ [UPLOADING] a v0.1.0 ([ROOT]/foo/a)
3420
+ [WARNING] aborting upload due to dry run
3421
+ [UPLOADING] b v0.1.0 ([ROOT]/foo/b)
3422
+ [WARNING] aborting upload due to dry run
3409
3423
3410
3424
"# ] ] )
3411
3425
. with_stdout_data ( str![ [ r#""# ] ] )
@@ -3414,55 +3428,50 @@ For more information, try '--help'.
3414
3428
p. cargo ( "publish --no-verify --dry-run -Zpackage-workspace --workspace --exclude b" )
3415
3429
. replace_crates_io ( registry. index_url ( ) )
3416
3430
. masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
3417
- . with_status ( 1 )
3418
3431
. with_stderr_data ( str![ [ r#"
3419
- [ERROR] unexpected argument '--workspace' found
3420
-
3421
- Usage: cargo publish --no-verify --dry-run -Z <FLAG>
3422
-
3423
- For more information, try '--help'.
3432
+ [UPDATING] crates.io index
3433
+ [WARNING] manifest has no description, license, license-file, documentation, homepage or repository.
3434
+ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.
3435
+ [PACKAGING] a v0.1.0 ([ROOT]/foo/a)
3436
+ [PACKAGED] 3 files, [FILE_SIZE]B ([FILE_SIZE]B compressed)
3437
+ [UPLOADING] a v0.1.0 ([ROOT]/foo/a)
3438
+ [WARNING] aborting upload due to dry run
3424
3439
3425
3440
"# ] ] )
3426
3441
. with_stdout_data ( str![ [ r#""# ] ] )
3427
3442
. run ( ) ;
3428
3443
3429
3444
p. cargo ( "publish --no-verify --dry-run --package a --package b" )
3430
3445
. replace_crates_io ( registry. index_url ( ) )
3431
- . with_status ( 1 )
3446
+ . with_status ( 101 )
3432
3447
. with_stderr_data ( str![ [ r#"
3433
- [ERROR] the argument '--package [<SPEC>]' cannot be used multiple times
3434
-
3435
- Usage: cargo publish [OPTIONS]
3436
-
3437
- For more information, try '--help'.
3448
+ [ERROR] the `--package (multiple occurrences)` flag is unstable, and only available on the nightly channel of Cargo, but this is the `stable` channel
3449
+ See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.
3450
+ See https://github.com/rust-lang/cargo/issues/10948 for more information about the `--package (multiple occurrences)` flag.
3438
3451
3439
3452
"# ] ] )
3440
3453
. with_stdout_data ( str![ [ r#""# ] ] )
3441
3454
. run ( ) ;
3442
3455
3443
3456
p. cargo ( "publish --no-verify --dry-run --workspace" )
3444
3457
. replace_crates_io ( registry. index_url ( ) )
3445
- . with_status ( 1 )
3458
+ . with_status ( 101 )
3446
3459
. with_stderr_data ( str![ [ r#"
3447
- [ERROR] unexpected argument '--workspace' found
3448
-
3449
- Usage: cargo publish --no-verify --dry-run
3450
-
3451
- For more information, try '--help'.
3460
+ [ERROR] the `--workspace` flag is unstable, and only available on the nightly channel of Cargo, but this is the `stable` channel
3461
+ See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.
3462
+ See https://github.com/rust-lang/cargo/issues/10948 for more information about the `--workspace` flag.
3452
3463
3453
3464
"# ] ] )
3454
3465
. with_stdout_data ( str![ [ r#""# ] ] )
3455
3466
. run ( ) ;
3456
3467
3457
3468
p. cargo ( "publish --no-verify --dry-run --exclude b" )
3458
3469
. replace_crates_io ( registry. index_url ( ) )
3459
- . with_status ( 1 )
3470
+ . with_status ( 101 )
3460
3471
. with_stderr_data ( str![ [ r#"
3461
- [ERROR] unexpected argument '--exclude' found
3462
-
3463
- Usage: cargo publish --no-verify --dry-run
3464
-
3465
- For more information, try '--help'.
3472
+ [ERROR] the `--exclude` flag is unstable, and only available on the nightly channel of Cargo, but this is the `stable` channel
3473
+ See https://doc.rust-lang.org/book/appendix-07-nightly-rust.html for more information about Rust release channels.
3474
+ See https://github.com/rust-lang/cargo/issues/10948 for more information about the `--exclude` flag.
3466
3475
3467
3476
"# ] ] )
3468
3477
. with_stdout_data ( str![ [ r#""# ] ] )
0 commit comments