Skip to content
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

error: could not remove build directory #12871

Closed
loynoir opened this issue Oct 24, 2023 · 1 comment
Closed

error: could not remove build directory #12871

loynoir opened this issue Oct 24, 2023 · 1 comment
Labels
C-bug Category: bug Command-clean S-triage Status: This issue is waiting on initial triage.

Comments

@loynoir
Copy link

loynoir commented Oct 24, 2023

Problem

I use devcontainer.

And /path/to/repo/target is a mountpoint.

When I run cargo clean, cargo try to delete mount point, which leads to error: could not remove build directory.

Steps

$ mountpoint /path/to/repo/target && cargo clean
/path/to/repo/target is a mountpoint
error: could not remove build directory

Caused by:
  failed to remove directory `/path/to/repo/target`

  Caused by:
      Device or resource busy (os error 16)

  Error: failed to remove directory `/path/to/repo/target`

Caused by:
  Device or resource busy (os error 16)

Possible Solution(s)

Don't try to delete mountpoint.

Notes

No response

Version

No response

Related

I run cargo clean because rust-lang/rust-analyzer#15057 (comment)

@loynoir loynoir added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Oct 24, 2023
@epage
Copy link
Contributor

epage commented Oct 24, 2023

This looks to be a duplicate of #11887, closing in favor of that. If there is a distinction between these that I missed, let us know!

@epage epage closed this as not planned Won't fix, can't repro, duplicate, stale Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug Command-clean S-triage Status: This issue is waiting on initial triage.
Projects
None yet
Development

No branches or pull requests

2 participants