Commit 3e8bd3c
Make the tap dispatch and checksum steps fail when they fail
The v0.5.0 release exposed two steps that reported success while doing
nothing.
The repository dispatch to the tap returned HTTP 401 and the step
printed "Repository dispatch event sent successfully" regardless, because
the curl had no --fail and nothing inspected the response. The formula
was left pointing at v0.1.38-test, a release that had been deleted, so
brew install fetched a 404. The status is now captured and anything
other than 204 fails the job with the response body and a note on what a
401 or 404 implies. HOMEBREW_TAP_DISPATCH_TOKEN is set but was last
updated a year ago, so the credential behind it has expired — the
emptiness check added alongside would not have caught that, which is why
the status check is the real guard.
The checksum step globbed for "*.macos" while the artifacts are named
usbipd-vX.Y.Z-macos, ending in "-macos". The glob never matched, so
checksums-v0.5.0.sha256 shipped covering only the tarballs, with no hash
for the binary users actually download — the formula's sha256 had to be
computed by hand. Fixed, with a guard that fails the job if no binary
checksum is recorded.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017rmyikdjWveP99ZUCDLY891 parent f823571 commit 3e8bd3c
1 file changed
Lines changed: 35 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
366 | 374 | | |
367 | 375 | | |
368 | 376 | | |
| |||
788 | 796 | | |
789 | 797 | | |
790 | 798 | | |
791 | | - | |
792 | | - | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
793 | 811 | | |
794 | 812 | | |
795 | 813 | | |
| |||
806 | 824 | | |
807 | 825 | | |
808 | 826 | | |
809 | | - | |
810 | | - | |
811 | | - | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
812 | 841 | | |
813 | 842 | | |
814 | 843 | | |
| |||
0 commit comments