Commit a335e31
committed
fix(release): handle tar failures properly in strict mode
Disable errexit temporarily around tar pipe to allow proper fallback
to cp+rm when tar fails. In strict mode (set -euo pipefail), pipe
failures would exit the function before the fallback could execute.
Changes:
- Wrap tar command with set +e / set -e
- Capture tar exit status explicitly
- Check status and fallback to cp if needed
This fixes intermittent sandbox test failures in strict parallel mode
while maintaining the performance benefit of tar on systems where it works.1 parent 5eda18e commit a335e31
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
376 | 376 | | |
377 | 377 | | |
378 | 378 | | |
379 | | - | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
380 | 383 | | |
381 | 384 | | |
382 | 385 | | |
383 | 386 | | |
384 | | - | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
385 | 392 | | |
386 | 393 | | |
387 | 394 | | |
| |||
0 commit comments