Skip to content

Commit 581cbe9

Browse files
committed
Add .gzip for completeness, move above .zip
Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
1 parent a31d5f6 commit 581cbe9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/archive/archive.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ func ExtractionMethod(ext string) func(context.Context, string, string) error {
196196
// New cases should go below this line so that the lengthier tar extensions are evaluated first
197197
case ".apk", ".gem", ".tar", ".tar.bz2", ".tar.gz", ".tgz", ".tar.xz", ".tbz", ".xz":
198198
return ExtractTar
199+
case ".gz", ".gzip":
200+
return ExtractGzip
199201
case ".jar", ".zip", ".whl":
200202
return ExtractZip
201-
case ".gz":
202-
return ExtractGzip
203203
case ".bz2", ".bzip2":
204204
return ExtractBz2
205205
case ".rpm":

0 commit comments

Comments
 (0)