Skip to content

fix: create update temp files exclusively#838

Merged
ryanfowler merged 1 commit into
mainfrom
fix/exclusive-update-temp-files
Jul 6, 2026
Merged

fix: create update temp files exclusively#838
ryanfowler merged 1 commit into
mainfrom
fix/exclusive-update-temp-files

Conversation

@ryanfowler

Copy link
Copy Markdown
Owner

Summary

  • use random suffixes for update temp file names
  • create update temp files with create_new and retry on collisions
  • copy update files into already-open exclusive temp handles
  • harden can_replace_file probing to avoid truncating existing files

Validation

  • cargo fmt --check
  • cargo test --locked --all-features --lib update::install
  • cargo clippy --locked --all-targets --all-features -- -D warnings

@ryanfowler ryanfowler merged commit 22aa13a into main Jul 6, 2026
4 checks passed
@ryanfowler ryanfowler deleted the fix/exclusive-update-temp-files branch July 6, 2026 14:49
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