@@ -3384,13 +3384,20 @@ fn package_selection() {
33843384 p. cargo ( "publish --no-verify --dry-run -Zpackage-workspace --workspace" )
33853385 . replace_crates_io ( registry. index_url ( ) )
33863386 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
3387- . with_status ( 1 )
33883387 . 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
33943401
33953402"# ] ] )
33963403 . with_stdout_data ( str![ [ r#""# ] ] )
@@ -3399,13 +3406,20 @@ For more information, try '--help'.
33993406 p. cargo ( "publish --no-verify --dry-run -Zpackage-workspace --package a --package b" )
34003407 . replace_crates_io ( registry. index_url ( ) )
34013408 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
3402- . with_status ( 1 )
34033409 . 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
34093423
34103424"# ] ] )
34113425 . with_stdout_data ( str![ [ r#""# ] ] )
@@ -3414,55 +3428,50 @@ For more information, try '--help'.
34143428 p. cargo ( "publish --no-verify --dry-run -Zpackage-workspace --workspace --exclude b" )
34153429 . replace_crates_io ( registry. index_url ( ) )
34163430 . masquerade_as_nightly_cargo ( & [ "package-workspace" ] )
3417- . with_status ( 1 )
34183431 . 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
34243439
34253440"# ] ] )
34263441 . with_stdout_data ( str![ [ r#""# ] ] )
34273442 . run ( ) ;
34283443
34293444 p. cargo ( "publish --no-verify --dry-run --package a --package b" )
34303445 . replace_crates_io ( registry. index_url ( ) )
3431- . with_status ( 1 )
3446+ . with_status ( 101 )
34323447 . 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.
34383451
34393452"# ] ] )
34403453 . with_stdout_data ( str![ [ r#""# ] ] )
34413454 . run ( ) ;
34423455
34433456 p. cargo ( "publish --no-verify --dry-run --workspace" )
34443457 . replace_crates_io ( registry. index_url ( ) )
3445- . with_status ( 1 )
3458+ . with_status ( 101 )
34463459 . 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.
34523463
34533464"# ] ] )
34543465 . with_stdout_data ( str![ [ r#""# ] ] )
34553466 . run ( ) ;
34563467
34573468 p. cargo ( "publish --no-verify --dry-run --exclude b" )
34583469 . replace_crates_io ( registry. index_url ( ) )
3459- . with_status ( 1 )
3470+ . with_status ( 101 )
34603471 . 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.
34663475
34673476"# ] ] )
34683477 . with_stdout_data ( str![ [ r#""# ] ] )
0 commit comments