-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Warning
packages not found
if --workspace
presents
- Loading branch information
Showing
2 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2667,13 +2667,17 @@ fn warn_nonexistence_package_togother_with_workspace() { | |
|
||
p.cargo("check --package nonexistence --package nonpattern* --workspace") | ||
.with_stderr_data(str![[r#" | ||
[WARNING] package(s) `nonexistence` not found in workspace `[ROOT]/foo` | ||
[WARNING] package pattern(s) `nonpattern*` not found in workspace `[ROOT]/foo` | ||
[FINISHED] `dev` profile [unoptimized + debuginfo] target(s) in [ELAPSED]s | ||
"#]]) | ||
.run(); | ||
|
||
p.cargo("package --package nonexistence --package nonpattern* --workspace") | ||
.with_stderr_data(str![[r#" | ||
[WARNING] package(s) `nonexistence` not found in workspace `[ROOT]/foo` | ||
[WARNING] package pattern(s) `nonpattern*` not found in workspace `[ROOT]/foo` | ||
[WARNING] manifest has no description, license, license-file, documentation, homepage or repository. | ||
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info. | ||
[PACKAGING] baz v0.1.0 ([ROOT]/foo/baz) | ||
|
@@ -2694,6 +2698,8 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for | |
|
||
p.cargo("publish --dry-run --package nonexistence --package nonpattern* -Zpackage-workspace --workspace") | ||
.with_stderr_data(str![[r#" | ||
[WARNING] package(s) `nonexistence` not found in workspace `[ROOT]/foo` | ||
[WARNING] package pattern(s) `nonpattern*` not found in workspace `[ROOT]/foo` | ||
[UPDATING] crates.io index | ||
[WARNING] crate [email protected] already exists on crates.io index | ||
[WARNING] manifest has no description, license, license-file, documentation, homepage or repository. | ||
|
@@ -2720,6 +2726,10 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for | |
.run(); | ||
|
||
p.cargo("tree --package nonexistence --package nonpattern* --workspace") | ||
.with_stderr_data(str![]) | ||
.with_stderr_data(str![[r#" | ||
[WARNING] package(s) `nonexistence` not found in workspace `[ROOT]/foo` | ||
[WARNING] package pattern(s) `nonpattern*` not found in workspace `[ROOT]/foo` | ||
"#]]) | ||
.run(); | ||
} |