Skip to content

ci(lint): ban raw os.Rename in production code - #30

Merged
wesm merged 2 commits into
mainfrom
pr/ban-os-rename
Oct 5, 2026
Merged

wesm merged 2 commits into
mainfrom
pr/ban-os-rename

Conversation

@rodboev

@rodboev rodboev commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

New code can't reintroduce the Windows failure where replacing a file fails while another process has it open: lint now rejects raw os.Rename outside tests and points at atomicfile.Replace from go.kenn.io/kit.

@roborev-ci

roborev-ci Bot commented Oct 5, 2026

Copy link
Copy Markdown

roborev: Combined Review (0b4b529)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 58s

@roborev-ci

roborev-ci Bot commented Oct 5, 2026

Copy link
Copy Markdown

roborev: Combined Review (af3d083)

Verdict: No findings at or above medium severity.


Reviewers: 2x codex, codex (security) | Synthesis: codex | Total: 50s

@rodboev rodboev changed the title ci(lint): forbid os.Rename in production code ci(lint): ban raw os.Rename in production code Oct 5, 2026
@wesm
wesm merged commit 7aee30c into main Oct 5, 2026
15 of 16 checks passed
@wesm
wesm deleted the pr/ban-os-rename branch October 5, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants