mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 10:01:53 -05:00
Replace github.com/pkg/errors with stdlib errors/fmt (#2400)
This commit is contained in:
@@ -4,6 +4,7 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -20,7 +21,6 @@ import (
|
||||
|
||||
gosrc "github.com/Morganamilo/go-srcinfo"
|
||||
"github.com/leonelquinteros/gotext"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var ErrNoBuildFiles = errors.New(gotext.Get("cannot find PKGBUILD and .SRCINFO in directory"))
|
||||
@@ -74,7 +74,7 @@ func installLocalPKGBUILD(
|
||||
|
||||
pkgbuild, err := gosrc.ParseFile(filepath.Join(targetDir, ".SRCINFO"))
|
||||
if err != nil {
|
||||
return errors.Wrap(err, gotext.Get("failed to parse .SRCINFO"))
|
||||
return fmt.Errorf("%s: %w", gotext.Get("failed to parse .SRCINFO"), err)
|
||||
}
|
||||
|
||||
srcInfos[targetDir] = pkgbuild
|
||||
|
||||
Reference in New Issue
Block a user