From f0f25656d22941963540e2857eb775983e65cfa2 Mon Sep 17 00:00:00 2001 From: James Sheppard Date: Sun, 7 May 2023 17:00:11 +0000 Subject: [PATCH] use fmt package for Errorf call in load.go Signed-off-by: James Sheppard --- pkg/chart/loader/load.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/chart/loader/load.go b/pkg/chart/loader/load.go index 7cc8878a8..877903546 100644 --- a/pkg/chart/loader/load.go +++ b/pkg/chart/loader/load.go @@ -18,6 +18,7 @@ package loader import ( "bytes" + "fmt" "log" "os" "path/filepath" @@ -171,7 +172,7 @@ func LoadFiles(files []*BufferedFile) (*chart.Chart, error) { case filepath.Ext(n) == ".tgz": file := files[0] if file.Name != n { - return c, errors.Errorf("error unpacking tar in %s: expected %s, got %s", c.Name(), n, file.Name) + return c, fmt.Errorf("error unpacking tar in %s: expected %s, got %s", c.Name(), n, file.Name) } // Untar the chart and add to c.Dependencies sc, err = LoadArchive(bytes.NewBuffer(file.Data))