Commit f836fb2
fix(scripts): put the mktemp X's last in gen-sdui-manifest.sh templates (#17120)
`mktemp "…/sdui-dump-dev.XXXXXX.log"` is a GNU coreutils spelling: coreutils
splits the trailing `.log` off as an implied `--suffix` (`--suffix=SUFF … is
implied if TEMPLATE does not end in X`) and substitutes the X's anyway, which
is why CI has never seen this. BSD mktemp(1) is a thin wrapper over mkstemp(3),
which only ever replaces a TRAILING run of X's, so on stock macOS nothing is
substituted: the first run creates the file called literally
`sdui-dump-dev.XXXXXX.log` and every later run dies at that line with
`File exists`. That host is the only one this on-demand ratchet is run on.
Two of the three call sites carried the broken shape. The pidfile beside them
was already correct and is untouched; it is now the shape all three use. The
`.log` extension is given up rather than bought back with `--suffix` (itself
the GNU extension) or with a rename that would add a second path and a window
in which the two disagree — nothing reads these files by extension.
Pins the spelling beside the existing fixed-path pin, asserting the count of
GOOD templates next to the count of bad ones so that a file with no templates
left in it cannot read as green.
Claude-Session: https://claude.ai/code/session_012GKcPZbMoGq7WPzKLfRBTU
Co-authored-by: Claude <noreply@anthropic.com>1 parent 032452a commit f836fb2
2 files changed
Lines changed: 55 additions & 2 deletions
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
291 | 317 | | |
292 | 318 | | |
293 | 319 | | |
| |||
424 | 450 | | |
425 | 451 | | |
426 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
427 | 459 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
571 | | - | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
572 | 591 | | |
573 | 592 | | |
574 | 593 | | |
| |||
625 | 644 | | |
626 | 645 | | |
627 | 646 | | |
628 | | - | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
629 | 650 | | |
630 | 651 | | |
631 | 652 | | |
| |||
0 commit comments