helm: drop github.com/pkg/errors
Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
25f54ee80e
commit
5ae30cb4aa
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue