fix: dump with default zip type produces uncompressed zip (#37401)
Fix #37393 Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: wxiaoguang <2114189+wxiaoguang@users.noreply.github.com>
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
package dump
|
package dump
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"archive/zip"
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
@@ -85,7 +86,7 @@ func NewDumper(ctx context.Context, format string, output io.Writer) (*Dumper, e
|
|||||||
var comp archives.ArchiverAsync
|
var comp archives.ArchiverAsync
|
||||||
switch format {
|
switch format {
|
||||||
case "zip":
|
case "zip":
|
||||||
comp = archives.Zip{}
|
comp = archives.Zip{Compression: zip.Deflate}
|
||||||
case "tar":
|
case "tar":
|
||||||
comp = archives.Tar{}
|
comp = archives.Tar{}
|
||||||
case "tar.sz":
|
case "tar.sz":
|
||||||
|
|||||||
Reference in New Issue
Block a user