Skip to content

Commit 5ae30cb

Browse files
committed
helm: drop github.com/pkg/errors
Signed-off-by: Hidde Beydals <[email protected]>
1 parent 25f54ee commit 5ae30cb

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

internal/helm/chart/loader/ignore/rules.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ package ignore
1919
import (
2020
"bufio"
2121
"bytes"
22+
"errors"
2223
"io"
2324
"log"
2425
"os"
2526
"path/filepath"
2627
"strings"
27-
28-
"github.com/pkg/errors"
2928
)
3029

3130
// HelmIgnore default name of an ignorefile.

internal/helm/chart/loader/sympath/walk.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ limitations under the License.
2222
package sympath
2323

2424
import (
25+
"fmt"
2526
"io/fs"
2627
"os"
2728
"path/filepath"
2829
"sort"
29-
30-
"github.com/pkg/errors"
3130
)
3231

3332
// 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 {
7473
if IsSymlink(info) {
7574
resolved, err := filepath.EvalSymlinks(path)
7675
if err != nil {
77-
return errors.Wrapf(err, "error evaluating symlink %s", path)
76+
return fmt.Errorf("error evaluating symlink %s: %w", path, err)
7877
}
7978
if info, err = os.Lstat(resolved); err != nil {
8079
return err

0 commit comments

Comments
 (0)