-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
(Virtual?) manifest with both package
and workspace
sections is accepted
#3526
Comments
package
and workspace
sections is acceptedpackage
and workspace
sections is accepted
Could you gist the manifest in question? This is actually intended behavior where a package can be the root of a workspace. |
I've ran into the intended behavior with this package: https://github.com/imazen/imageflow "virtual manifest" is a term I haven't heard before, so the error message is not clear to me. I hoped that by running I suppose |
Virtual manifest is defined in the RFC:
Therefore, there's no package for the workspace root, therefore no By default, cargo always works on one single package (vs all packages in a workspace), therefore this is all expected behavior. I think there's nothing left open in this issue and we can close it. |
Sounds good to me! |
IMO concepts should be in user documentation, not only in an RFC. That issue remains. I commented that a manifest with both Please reopen the issue if this is true, @alexcrichton. |
Valid point, @sanmai-NL. The online/current docs should contain the definition of Virtual Manifest and its behavior. @alexcrichton, can we please reopen the issue to track the documentation matter? I can submit a PR, and take the assignment, if needed. Also, @alexcrichton, it looks like that there's a lot of workspace-related content to go into the docs (this issue, #4304, and some other ones) What do you think about creating a separate page, like http://doc.crates.io/workspace.html, to cover all the details? |
Current documentation does not mention Virtual Manifests at all, which can be confusing because they appear in error messages. Here we add the definition, and provide a hint about `--all` option for most cargo commands, which allow the command to work in the way most probably expected. Fixes <rust-lang#3526>
[docs/manifest] Add Virtual Manifest section Current documentation does not mention Virtual Manifests at all, which can be confusing because they appear in error messages. Here we add the definition, and provide a hint about `--all` option for most cargo commands, which allow the command to work in the way most probably expected. Fixes <#3526>
I created a new package using
cargo new
, then added theworkspace
section to the manifest. That did not work. When the manifest has bothpackage
andworkspace
sections, this is accepted bycargo
and I found that confusing. Instead,cargo
should report the manifest as invalid, since it apparently is.BTW, once my error of having both sections was corrected to
workspace
-only,cargo
reported:I couldn't find a definition of ‘virtual manifest’ in the Cargo docs, however.
Version
cargo 0.17.0-nightly (40a4ce6 2017-01-06)
The text was updated successfully, but these errors were encountered: