[Chapel Merge] Make sure temp files get clobbered

Branch: refs/heads/main
Revision: 9e0f1675f16791d97b62577e9e7568c43d0b714c
Author: jabraham17
Link: Make sure temp files get clobbered by jabraham17 · Pull Request #28590 · chapel-lang/chapel · GitHub
Log Message:
Make sure temp files get clobbered (#28590)

Fixes two python scripts which use temp files to make sure the temp
files get clobbered

This is especially important for gen_release, as the temp directory
can fill up very quickly if we don't clobber it. The adjustment to
write-git-sha is less important, but a nice cleanup

  • checked that gen_release still works locally and clobbers the
    temp dir

[Reviewed by @arifthpe]

Compare: Comparing 0dae4504bfb5078e057794a27e87b5c18dfb0b6e...3e9060a6e1c93e90c545236fa688835c225f1170 · chapel-lang/chapel · GitHub

Diff:
M util/buildRelease/gen_release
M util/config/write-git-sha
https://github.com/chapel-lang/chapel/pull/28590.diff