Commit f13baef
committed
fix: write .version directly instead of hardcoding the version in urls
ci/bump_homebrew_formula.rb now writes Formula/linear-cli/.version to
the release tag directly (the formula's own single source of truth,
per rubyists/homebrew-tap's matching change) instead of rewriting a
literal version number inside each url - the url lines are now a
constant `v#{version}/<asset>` in the formula's own source, so only
the sha256 that follows each one actually needs updating per release.
Verified against a real copy of the formula: correct .version/sha256
output, url lines left untouched, idempotent on a repeated run with
the same inputs, and the resulting formula evaluates to the correct
version/url/sha256 via a small Homebrew-Formula-DSL stub.
Also bumps the vendor/rubyists-homebrew-tap submodule pointer to the
merged fix (rubyists/homebrew-tap#6).1 parent d13ddf4 commit f13baef
2 files changed
Lines changed: 20 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | | - | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
31 | 41 | | |
32 | | - | |
33 | | - | |
34 | | - | |
| 42 | + | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
38 | 47 | | |
39 | 48 | | |
40 | 49 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 50 | + | |
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
48 | | - | |
| 54 | + | |
0 commit comments