Commit df59f8f
committed
downloader: decompress gzip in pure Go
Use compress/gzip directly instead of shelling out to a gzip binary.
On Windows, gzip is not part of the base system, so the previous
behaviour required Git for Windows or MSYS2 to be on PATH just to
unpack a .tar.gz image during limactl create / start.
Other formats (bzip2, xz, zstd) still go through the exec path, since
they are less common in Lima image URLs and would need extra
dependencies for in-process decompression. They can be migrated
similarly in follow-ups if needed.
Signed-off-by: Jan Dubois <jan.dubois@suse.com>1 parent 6924004 commit df59f8f
1 file changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
549 | 550 | | |
550 | 551 | | |
551 | 552 | | |
552 | | - | |
553 | | - | |
554 | | - | |
555 | | - | |
556 | | - | |
557 | 553 | | |
558 | 554 | | |
559 | 555 | | |
560 | 556 | | |
561 | 557 | | |
562 | 558 | | |
563 | 559 | | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
564 | 578 | | |
565 | 579 | | |
566 | 580 | | |
567 | 581 | | |
568 | 582 | | |
569 | 583 | | |
570 | 584 | | |
571 | | - | |
572 | 585 | | |
573 | 586 | | |
574 | 587 | | |
| |||
0 commit comments