diff --git a/actions/unpack_action.go b/actions/unpack_action.go index 91e3f52..9d02fc0 100644 --- a/actions/unpack_action.go +++ b/actions/unpack_action.go @@ -27,7 +27,7 @@ The default value is 'artifacts' directory in case if this property is omitted. - compression -- optional hint for unpack allowing to use proper compression method. -Currently only 'gz', bzip2' and 'xz' compression types are supported. +Currently 'bzip2', 'gz', 'lzip', 'lzma', 'lzop', 'xz' and 'zstd' compression types are supported. If not provided an attempt to autodetect the compression type will be done. */ package actions diff --git a/archiver.go b/archiver.go index 410ac8f..2ddfc8e 100644 --- a/archiver.go +++ b/archiver.go @@ -83,10 +83,13 @@ func unpack(command []string, destination string) error { // Returns empty string for unknown func tarOptions(compression string) string { unpackTarOpts := map[string]string{ - "gz": "-z", - "bzip2": "-j", - "xz": "-J", - "zstd": "--zstd", + "bzip2": "--bzip2", + "gz": "--gzip", + "lzip": "--lzip", + "lzma": "--lzma", + "lzop": "--lzop", + "xz": "--xz", + "zstd": "--zstd", } // Trying to guess all other supported compression types return unpackTarOpts[compression]