Skip to content

Replace NamedTempFile::persist with more explicit file creation method #61

@coderabbitai

Description

@coderabbitai

The current implementation in tests/steps/process_steps.rs (line 70) uses NamedTempFile::persist() which overwrites existing files without explicit control.

Current code:

file.persist(&manifest_path)
    .expect("Failed to persist manifest file");

Suggested alternatives:

  • Use fs::write for explicit file writing
  • Use NamedTempFile::persist_noclobber to avoid accidental overwrites

This change would provide more explicit control over file creation behavior and prevent unintended file overwrites.

Backlinks:

Requested by: @leynos

Metadata

Metadata

Assignees

Labels

lowAin't annoying anyone but the QA department

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions