Add more suggestions on how to deal with excluding a package from a workspace.

This commit is contained in:
Eric Huss 2019-03-31 17:48:15 -07:00
parent ede459e251
commit d7a9212409
2 changed files with 7 additions and 1 deletions

View File

@ -660,7 +660,10 @@ impl<'cfg> Workspace<'cfg> {
failure::bail!(
"current package believes it's in a workspace when it's not:\n\
current: {}\n\
workspace: {}\n\n{}",
workspace: {}\n\n{}\n\
Alternatively, to keep it out of the workspace, add the package \
to the `workspace.exclude` array, or add an empty `[workspace]` \
table to the package's manifest.",
self.current_manifest.display(),
root.display(),
extra

View File

@ -314,6 +314,7 @@ current: [..]Cargo.toml
workspace: [..]Cargo.toml
this may be fixable [..]
[..]
",
)
.run();
@ -779,6 +780,7 @@ workspace: [..]Cargo.toml
this may be fixable by adding `bar` to the `workspace.members` array of the \
manifest located at: [..]
[..]
",
)
.run();
@ -979,6 +981,7 @@ workspace: [..]
this may be fixable by ensuring that this crate is depended on by the workspace \
root: [..]
[..]
[CREATED] library `bar` package
",
)