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
The current implementation in
tests/steps/process_steps.rs(line 70) usesNamedTempFile::persist()which overwrites existing files without explicit control.Current code:
Suggested alternatives:
fs::writefor explicit file writingNamedTempFile::persist_noclobberto avoid accidental overwritesThis change would provide more explicit control over file creation behavior and prevent unintended file overwrites.
Backlinks:
Requested by: @leynos