Commit b2d8a4c
feat(lib/github): OFFLINE=1 short-circuits require_github_release
Hosts that cannot reach github.com (e.g. an Iran-only egress) cannot
fetch binary releases. Previously this caused any script depending on
`require_github_release` (currently fetch.sh, alacritty.sh, several
others) to fail the entire start.sh run with a 5-minute curl timeout.
When OFFLINE=1 is set in the environment, the function now logs a
skip and returns 0, treating the dependency as satisfied
(best-effort). Callers that NEED the github binary still fail at
runtime when the binary is invoked, but the install script itself
no longer aborts.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent cdd4b33 commit b2d8a4c
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
269 | 279 | | |
270 | 280 | | |
271 | 281 | | |
| |||
0 commit comments