helm: drop github.com/pkg/errors

Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
Hidde Beydals 2022-04-08 11:37:33 +02:00
parent 25f54ee80e
commit 5ae30cb4aa
2 changed files with 3 additions and 5 deletions

View File

@ -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.

View File

@ -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