Skip to content

Commit b2fbd65

Browse files
committed
fix(vendor): downgrade package cache lock to DownloadExclusive
It is safe since `cargo vendor` no longer deletes any files.
1 parent b09d3de commit b2fbd65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cargo/ops/vendor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ pub fn vendor(ws: &Workspace<'_>, opts: &VendorOptions<'_>) -> CargoResult<()> {
3939
extra_workspaces.push(ws);
4040
}
4141
let workspaces = extra_workspaces.iter().chain(Some(ws)).collect::<Vec<_>>();
42-
let _lock = gctx.acquire_package_cache_lock(CacheLockMode::MutateExclusive)?;
42+
let _lock = gctx.acquire_package_cache_lock(CacheLockMode::DownloadExclusive)?;
4343
let vendor_config = sync(gctx, &workspaces, opts).context("failed to sync")?;
4444

4545
if gctx.shell().verbosity() != Verbosity::Quiet {

0 commit comments

Comments
 (0)