You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a workspace with a couple of crates, and want to add a new crate inside the directory which is not part of the workspace. I get following error message:
error: current package believes it's in a workspace when it's not:
current: /workspace/foo/Cargo.toml
workspace: /workspace/Cargo.toml
this may be fixable by adding `foo` to the `workspace.members` array of the manifest located at: /workspace/Cargo.toml
The error message suggest the alternative of making the crate part of the workspace, but this is not what I want. It should also suggest how to make the current package not believe that it is in a workspace.
The way I solved it is by adding the following to the foo crate's Cargo.toml;
[workspace]
members = []
EDIT: Arnavion suggested on IRC that this is actually a bug and how I solved this just a workaround.
The text was updated successfully, but these errors were encountered:
I have a workspace with a couple of crates, and want to add a new crate inside the directory which is not part of the workspace. I get following error message:
The error message suggest the alternative of making the crate part of the workspace, but this is not what I want. It should also suggest how to make the current package not believe that it is in a workspace.
The way I solved it is by adding the following to the
foo
crate'sCargo.toml
;EDIT: Arnavion suggested on IRC that this is actually a bug and how I solved this just a workaround.
The text was updated successfully, but these errors were encountered: