Skip to content

Make sure to always truncate the file when writing #200

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

chvp
Copy link
Owner

@chvp chvp commented Oct 27, 2024

The append action fully rewrites the file, so we should open in truncate mode in this case as well.

Fixes #197.

The append action fully rewrites the file, so we should open in truncate mode in
this case as well.
@chvp chvp added the bug Something isn't working label Oct 27, 2024
@chvp chvp merged commit e542521 into main Oct 28, 2024
3 checks passed
@chvp chvp deleted the fix/always-truncate-file branch October 28, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Messing up the ledger file since v0.4.6
1 participant