Commit c565ca3
authored
fix(install): resolve latest version via release redirect, not the rate-limited GitHub API (FIR-1012) (#43)
install.sh fetched the latest tag from api.github.com/releases/latest, whose
ANONYMOUS rate limit is 60 req/hour per IP — trivially exhausted from a shared,
NAT'd, corporate, or CI network, returning 403 -> 'Could not determine latest
version'. Resolve the tag from the rate-limit-free `releases/latest` redirect
(Location -> /releases/tag/vX.Y.Z) for both curl and wget. Surfaced by the
install-proof (macos runner hit the API 403).
Signed-off-by: Troy Fortin <troy@firelock.io>1 parent 7a40b9a commit c565ca3
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
86 | 91 | | |
87 | | - | |
| 92 | + | |
88 | 93 | | |
89 | | - | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
92 | 97 | | |
93 | 98 | | |
| 99 | + | |
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
| |||
0 commit comments