chore: remove unnecessary extraction library (#12847)

This was allocating ~256KB on init.
This commit is contained in:
Kyle Carberry
2024-04-02 11:19:54 -04:00
committed by GitHub
parent b5b5c37d03
commit 7698cfda72
5 changed files with 9 additions and 24 deletions
+2 -2
View File
@@ -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
},
}