Skip to content

Concurrent usage of cargo will generally result in badness #354

Closed
@alexcrichton

Description

@alexcrichton

Cargo does a number of unsynchronized and racy operations that lead to lots of badness if they happen concurrently. This includes, but is not limited to, management of target/, checkouts into ~/.cargo/git/, and anything having to do with concurrent compilations.

The only real reasonable solution I can think of to this is the same as the "big hammer" solution which is to just "add a lock to everything". Ideally we would separately lock ~/.cargo and the local directory, but they should both in general be locked when performing any action.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions