diff --git a/internal/helm/chart/loader/ignore/rules.go b/internal/helm/chart/loader/ignore/rules.go index a80923ba..d8054b44 100644 --- a/internal/helm/chart/loader/ignore/rules.go +++ b/internal/helm/chart/loader/ignore/rules.go @@ -19,13 +19,12 @@ package ignore import ( "bufio" "bytes" + "errors" "io" "log" "os" "path/filepath" "strings" - - "github.com/pkg/errors" ) // HelmIgnore default name of an ignorefile. diff --git a/internal/helm/chart/loader/sympath/walk.go b/internal/helm/chart/loader/sympath/walk.go index af0e1a15..a9763c56 100644 --- a/internal/helm/chart/loader/sympath/walk.go +++ b/internal/helm/chart/loader/sympath/walk.go @@ -22,12 +22,11 @@ limitations under the License. package sympath import ( + "fmt" "io/fs" "os" "path/filepath" "sort" - - "github.com/pkg/errors" ) // AbsWalkFunc functions like filepath.WalkFunc but provides the absolute path @@ -74,7 +73,7 @@ func symwalk(path, absPath string, info os.FileInfo, walkFn AbsWalkFunc) error { if IsSymlink(info) { resolved, err := filepath.EvalSymlinks(path) if err != nil { - return errors.Wrapf(err, "error evaluating symlink %s", path) + return fmt.Errorf("error evaluating symlink %s: %w", path, err) } if info, err = os.Lstat(resolved); err != nil { return err