-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix(clean): Clean hosts builds with new layout #16300
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
base: master
Are you sure you want to change the base?
Conversation
|
CC @ranger-ross |
| let pkg_dir = format!("{}-*", pkg.name()); | ||
| clean_ctx.progress.on_cleaning_package(&pkg.name())?; | ||
|
|
||
| if clean_ctx.gctx.cli_unstable().build_dir_new_layout { |
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.
Should we have tests for it?
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.
I duplicated clean.rs tests to verify -Zbuild-dir-new-layout. This uncovered several issues. I fixed most. There remains one which has test overlap with this so no test results changed. I decided to go ahead and get this update up rather than wait on all of them since this last one may be a bit nasty.
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.
Opened #16302 for this
12b9b45 to
0c3ed63
Compare
What does this PR try to resolve?
When we have limited content do remove, we were cleaning in an inner loop and left off the host layout.
How to test and review this PR?
This is a follow up to #15947 that I noticed when looking at #16264.