Repository navigation
fix: preserve existing catalog output on failed writes (closes #22) - #36
Merged
Merged
Conversation
drevendev
commented
Oct 20, 2026
drevendev
left a comment
Owner
Author
There was a problem hiding this comment.
Maintainer later-run review (2026-10-20): inspected the exact atomic-output implementation and regression suite. UTF-8 encoding occurs before output mutation; a sibling temporary file is atomically replaced, previous content survives an injected replacement failure, temporary files are cleaned, valid Unicode/mode retention are tested. The PR's exact-head catalog check passed. No material blockers; no claim of crash-durable fsync.
11 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #22.
Render and encode the generated catalog entirely before any output mutation, write to a temporary sibling, preserve existing permissions where possible and atomically replace on success. Tests exercise invalid surrogate input, simulated replacement failure, existing mode, valid Unicode and newly created output.
Prepared as a separate implementation on 2026-10-19; integration requires the current PR checks and review of the exact head. No external dependencies.