Skip to content

Commit 7b6624e

Browse files
committed
devenv: fix bug causing excessive direnv reloads
Fixes a typo that would truncate files after opening, when we're trying to reduce unnecessary modifications.
1 parent 5bb7eeb commit 7b6624e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

devenv/src/util.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub fn write_file_with_lock<P: AsRef<Path>, S: AsRef<str>>(path: P, content: S)
2525
.read(true)
2626
.write(true)
2727
.create(true)
28-
.truncate(true)
28+
.truncate(false)
2929
.open(path)
3030
.into_diagnostic()
3131
.map_err(|e| miette!("Failed to open file {}: {}", path.display(), e))?;

0 commit comments

Comments
 (0)