Skip to content

Error on cargo clean when target directory is a mount point #11887

Open
@nandesu-utils

Description

@nandesu-utils

Problem

I am using custom script to create a target and mount a tmpfs into it but when I run usual cargo clean it tries to delete the directory which fails with error due to busy resource since a mount point can't be deleted without unmounting first.

Proposed Solution

I think having a flag that controls whether the user would want to delete the /target directory when cleaning is going to help.

Notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Command-cleanS-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions