Skip to content

cargo vendor modifies the package cache without locking #12254

Closed
@Amanieu

Description

@Amanieu

We are getting occasional, but infrequent, failures in our CI which uses cargo vendor. Looking into it, it seems that this could be due to alexcrichton/cargo-vendor#131, where cargo vendor will delete downloaded crates in the package cache, even though those crates could be concurrently used by other build processes.

This is done without holding the package cache lock, but even if it did I'm not sure this is correct since other cargo commands will read from the package cache (e.g. cargo build will read the code from extracted crates) without holding the package cache lock.

Metadata

Metadata

Assignees

Labels

C-bugCategory: bugCommand-vendorE-mediumExperience: MediumS-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