summaryrefslogtreecommitdiff
path: root/cli/npm/managed/cache.rs
diff options
context:
space:
mode:
author林炳权 <695601626@qq.com>2024-04-11 06:08:23 +0800
committerGitHub <noreply@github.com>2024-04-10 22:08:23 +0000
commit9304126be5633d4e7d384a8df87f5833a7a145e2 (patch)
treec074d89e9f2423c5121721ea94b9b4fb3101a482 /cli/npm/managed/cache.rs
parentc6f1107e9c8835389479f4f2d80d3539d23df41e (diff)
chore: update to Rust 1.77.2 (#23262)
update to Rust 1.77.2 --------- Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'cli/npm/managed/cache.rs')
-rw-r--r--cli/npm/managed/cache.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/npm/managed/cache.rs b/cli/npm/managed/cache.rs
index 89587b430..9ba5c1c99 100644
--- a/cli/npm/managed/cache.rs
+++ b/cli/npm/managed/cache.rs
@@ -231,6 +231,7 @@ pub fn with_folder_sync_lock(
match fs::OpenOptions::new()
.write(true)
.create(true)
+ .truncate(false)
.open(&sync_lock_path)
{
Ok(_) => {