-
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 clean: error: could not remove build directory
#11441
Comments
Thank you for this report. We need your help to look into this issue. |
After it fails, what files/folders are still remaining in the directory? |
Ah interesting, it's the macOS I'm guessing the OS is re-generating this between the time the directory is emptied and the time the directory itself is removed. Note that the PR linked above (using |
Perhaps a Finder.app was there and trying to access that directory? |
Ran into this issue building with Dioxus Rust Unable to replicate it exactly. When I shifted terminals to the inbuilt MacOS terminal, the issue disappeared. When I reopened CLion, the issue disappeared. For the life of me, cannot figure out what application called Finder.app to insert a .DS_Store file.
This turned up nothing. |
Problem
cargo clean
sometimes fails to remove build directories, but simply re-running it succeeds.Steps
No response
Possible Solution(s)
This seems to use
std::fs::remove_dir
, perhapsstd::fs::remove_dir_all
would be a better option?Notes
No response
Version
The text was updated successfully, but these errors were encountered: