filepath.Ext(path) does not handle multi-suffix file extensions (e.g. .tar.gz).
This PR uses getExt instead (I should have noticed this in #205 but I was testing with .gem files).
I confirmed that this is working.
Original:
❯ go run . --format simple /Users/egibs/Downloads/apko_0.13.2_darwin_amd64.tar.gz
time=2024-05-10T15:03:10.707-05:00 level=ERROR msg="unable to process /Users/egibs/Downloads/apko_0.13.2_darwin_amd64.tar.gz: extract to temp: extract: failed to extract nested archive: failed to create gzip reader: gzip: invalid header"
Closes: #212
filepath.Ext(path)
does not handle multi-suffix file extensions (e.g..tar.gz
).This PR uses
getExt
instead (I should have noticed this in #205 but I was testing with.gem
files).I confirmed that this is working.
Original:
Fixed: