Skip to content

Add cross-platform atomic replace helper#440

Merged
ryanfowler merged 1 commit intomainfrom
atomic-replace
Mar 8, 2026
Merged

Add cross-platform atomic replace helper#440
ryanfowler merged 1 commit intomainfrom
atomic-replace

Conversation

@ryanfowler
Copy link
Copy Markdown
Owner

Summary

  • add internal/fileutil.AtomicReplaceFile with Unix and Windows implementations for safe renames
  • switch fetch output, session persistence, and updater metadata writes to the new helper and highlight the helper in AGENTS.md
  • cover the new flow with tests ensuring existing files get overwritten cleanly

Testing

  • Not run (not requested)

@ryanfowler ryanfowler merged commit 576a144 into main Mar 8, 2026
10 checks passed
@ryanfowler ryanfowler deleted the atomic-replace branch March 8, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant