mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: remove unnecessary extraction library (#12847)
This was allocating ~256KB on init.
This commit is contained in:
+2
-2
@@ -7,11 +7,11 @@ import (
|
||||
"path/filepath"
|
||||
"sort"
|
||||
|
||||
"github.com/codeclysm/extract/v3"
|
||||
"golang.org/x/xerrors"
|
||||
|
||||
"github.com/coder/coder/v2/cli/cliui"
|
||||
"github.com/coder/coder/v2/codersdk"
|
||||
"github.com/coder/coder/v2/provisionersdk"
|
||||
"github.com/coder/serpent"
|
||||
)
|
||||
|
||||
@@ -161,7 +161,7 @@ func (r *RootCmd) templatePull() *serpent.Command {
|
||||
}
|
||||
|
||||
_, _ = fmt.Fprintf(inv.Stderr, "Extracting template to %q\n", dest)
|
||||
err = extract.Tar(ctx, bytes.NewReader(raw), dest, nil)
|
||||
err = provisionersdk.Untar(dest, bytes.NewReader(raw))
|
||||
return err
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user