//patches:audition reports success after writing nothing #69
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
bcox/tymbal#69
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
bazel run //patches:audition -- /some/direxits 0 when/some/dirdoes notexist, having written no files. The only sign is a line on stdout per patch:
...and then a clean exit. A caller checking the exit status -- a script, CI, or an
agent -- sees success.
This is the same shape as the
--test_filtertrapsCLAUDE.mddocuments at length: agreen run that did nothing. It cost one wasted render cycle while verifying that branch
fm-followupsleft the factory bank byte-identical, and it would silently produce anempty comparison for anyone doing the same.
Two fixes, either acceptable:
std::filesystem::create_directorieson the output path before rendering.Probably both: create the directory, and still fail loudly if a write fails for another
reason (full disk, permissions).
While in there: the message says the same thing twice ("cannot write X: could not write
X"), and neither half carries the
errnothat would explain why.