From 288e0433dba40a2327db99966bc9f467e555c80b Mon Sep 17 00:00:00 2001 From: James Sheppard Date: Sun, 7 May 2023 16:45:13 +0000 Subject: [PATCH] use fmt pkg for Errorf calls in resolver.go Signed-off-by: James Sheppard --- internal/resolver/resolver.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/resolver/resolver.go b/internal/resolver/resolver.go index 5e8921f96..740c6faab 100644 --- a/internal/resolver/resolver.go +++ b/internal/resolver/resolver.go @@ -130,7 +130,7 @@ func (r *Resolver) Resolve(reqs []*chart.Dependency, repoNames map[string]string vs, ok = repoIndex.Entries[d.Name] if !ok { - return nil, errors.Errorf("%s chart not found in repo %s", d.Name, d.Repository) + return nil, fmt.Errorf("%s chart not found in repo %s", d.Name, d.Repository) } found = false } else { @@ -193,7 +193,7 @@ func (r *Resolver) Resolve(reqs []*chart.Dependency, repoNames map[string]string } } if len(missing) > 0 { - return nil, errors.Errorf("can't get a valid version for repositories %s. Try changing the version constraint in Chart.yaml", strings.Join(missing, ", ")) + return nil, fmt.Errorf("can't get a valid version for repositories %s. Try changing the version constraint in Chart.yaml", strings.Join(missing, ", ")) } digest, err := HashReq(reqs, locked) @@ -254,7 +254,7 @@ func GetLocalPath(repo, chartpath string) (string, error) { } if _, err = os.Stat(depPath); os.IsNotExist(err) { - return "", errors.Errorf("directory %s not found", depPath) + return "", fmt.Errorf("directory %s not found", depPath) } else if err != nil { return "", err }