Commit f70fdf7
committed
fix(install): capture tar extraction diagnostic output on darwin-arm64 (PILOT-221)
macOS bsdtar can silently produce no output when extracting GitHub
gzip archives on arm64 (darwin-arm64). The existing code suppressed
stderr via 2>/dev/null, leaving users with a generic "failed to
extract" error and no diagnostic path to debug or report the failure.
This change:
- Captures stderr from tar and gunzip into a temp file instead of
/dev/null, so diagnostic output is available when extraction fails.
- Uses an explicit EXTRACT_OK flag for cleaner fallback control flow.
- Shows diagnostic output (tool stderr) when both extraction methods
fail, making it possible to identify the root cause.
- Cleans up the temp file on success.
The gunzip|tar fallback is preserved as the second attempt path.
Closes PILOT-2211 parent eb18f4a commit f70fdf7
1 file changed
Lines changed: 22 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
308 | 316 | | |
309 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
310 | 322 | | |
311 | | - | |
| 323 | + | |
312 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
313 | 329 | | |
314 | 330 | | |
315 | 331 | | |
316 | 332 | | |
| 333 | + | |
317 | 334 | | |
318 | 335 | | |
319 | 336 | | |
| |||
0 commit comments