-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imply --workspace
when running in workspace root
#535
Imply --workspace
when running in workspace root
#535
Conversation
2ed18d7
to
26a2985
Compare
Aims for saner defaults & to match `cargo update` behavior
26a2985
to
28ee3f7
Compare
@@ -293,10 +293,15 @@ impl LocalManifest { | |||
Ok(LocalManifest { manifest, path }) | |||
} | |||
|
|||
/// Check if local manifest is virtual, i. e. corresponds to workspace root | |||
pub fn is_virtual(&self) -> bool { | |||
!self.data["workspace"].is_none() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The existence of a workspace
table does not make it virtual. To be virtual, it also needs to not have a package.
Check out https://github.com/crate-ci/clap-cargo/blob/master/src/workspace.rs#L29 for a good approximation of what cargo
does.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, I'll fix it a bit later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, we could just port the project over to clap-cargo
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clap-cargo
look like an amazing project! I'm willing to help with the porting.
Closing in favor of #537 |
Aims for saner defaults & to match
cargo update
behavior