Cargo uses .cargo/config of workspace from which it is excluded #7620
Labels
A-configuration
Area: cargo config files and env vars
A-source-replacement
Area: [source] replacement
A-workspaces
Area: workspaces
C-bug
Category: bug
So we have a big cargo workspace, let's say in
/workspace/
. We have/workspace/vendor
and/workspace/.cargo/config
which points crates-io to this vendor directory. In/workspace/Cargo.toml
we exclude one directory from the workspace:So, when I go into
/workspace/excluded
and I try to runcargo build
, I'm getting these kind of errors:So it seems that the source replacement from
.cargo/config
is seen as totally separate from the workspace concept. This if of course very annoying and I would consider it a bug. A directory excluded from the workspace should not use configs that are set in the workspace directory.The text was updated successfully, but these errors were encountered: