-
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
Cargo rebuilds workspace member when building root even if workspace member was just built #6337
Comments
This should be fixed in beta (1.31) via #6170. |
Thanks! I verified that the rebuild issue goes away on beta 1.3.1. |
We've noticed that locally the build times between stable and beta 1.31 are the same but in docker, we are seeing a noticeable difference in build times. (2 for stable, 13 for beta) |
@jackcmay Can you provide a reproduction or more information? Is it building more stuff in beta, or is it just running more slowly? |
@ehuss I'm not able to recreate the issue outside of our CI environment, sorry. |
For anyone landing here from web search, this issue still happens for crates that have
|
Problem
Building a workspace root after building a workspace member causes the workspace member to be rebuilt. Seem to be related to project dependencies and that fact that the member is a cdylib.
The example project below's
README.md
has a number of different to make the problem go away but none of them should be the solution to the problem.Steps
Example project that recreates the issue:
https://github.com/jackcmay/sandbox_rust_rebuilds/blob/master/README.md
Notes
Output of
cargo version
: cargo 1.30.0 (a1a4ad3 2018-11-02)The text was updated successfully, but these errors were encountered: