Commit 894a4cb
authored
fix(homebrew): show logo in brew install, guard empty tap token (#22)
* fix(homebrew): show logo in brew install, guard empty tap token
Two Homebrew install problems, both rooted in the tap pipeline:
1. `brew install` showed no logo. The Tetris/robot-head banner lived only
in the curl (install.sh) and PowerShell (install.ps1) installers, which
Homebrew never runs. Add a `caveats` block to the formula template so
`brew install` prints the static settled frame of that same logo (brew
caveats are plain text, so this is the uncoloured robot head).
2. The tap auto-update workflow has failed on every release since the org
migration: the `HOMEBREW_TAP_TOKEN` secret did not carry over, so
`git push` to the tap repo fails with a cryptic exit-128 auth error and
the tap stays frozen at the last good push (0.23.0). Add a fail-fast
guard that detects an empty TAP_TOKEN and prints an actionable error
instead of the opaque git failure.
Also add a test asserting the rendered formula carries the logo caveats.
The token secret itself must be re-added out-of-band (a fine-grained PAT
with Contents: Read and write on the tap repo); this change only makes the
failure obvious and ships the logo.
* test(homebrew): extract _fake_assets helper to dedupe asset setup1 parent 3e85740 commit 894a4cb
3 files changed
Lines changed: 48 additions & 4 deletions
File tree
- .github/workflows
- packages/homebrew-tap
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
79 | 83 | | |
80 | 84 | | |
81 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
44 | 61 | | |
45 | 62 | | |
46 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
33 | 39 | | |
34 | 40 | | |
35 | 41 | | |
| |||
59 | 65 | | |
60 | 66 | | |
61 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
0 commit comments