Skip to content

Commit

Permalink
fix(lock): Truncates file properly
Browse files Browse the repository at this point in the history
In my testing I found out that if you try to write the lockfile twice (a
common practice if you want to make sure the right data is there in case
of a failure) it wouldn't truncate properly. This fixes the issue and
adds that test to our test cases

Signed-off-by: Taylor Thomas <taylor@cosmonic.com>
  • Loading branch information
thomastaylor312 committed Oct 2, 2024
1 parent f9e34dd commit 02f892c
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 82 deletions.
Loading

0 comments on commit 02f892c

Please sign in to comment.