summaryrefslogtreecommitdiff
path: root/install/install.go
diff options
context:
space:
mode:
authorSeth Vargo <[email protected]>2023-07-16 17:37:11 -0400
committerSeth Vargo <[email protected]>2023-07-16 17:37:11 -0400
commit200c018481254444255dc0d90f1ad1bb7838d64a (patch)
tree6e08a342342d13c37434411b108a1fe5b9a16a88 /install/install.go
parent3f9152130d1c1e72ef5b0091380bfbeb7fafecf5 (diff)
Switch to Go 1.20 errors package
This updates all subpackages and removes use of go-multierror in favor of the stdlib implementation.
Diffstat (limited to 'install/install.go')
-rw-r--r--install/install.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/install/install.go b/install/install.go
index 1c995f3..9b5ccac 100644
--- a/install/install.go
+++ b/install/install.go
@@ -10,8 +10,6 @@ import (
"path/filepath"
"runtime"
"strings"
-
- "github.com/hashicorp/go-multierror"
)
func Run(name string, uninstall, yes bool, out io.Writer, in io.Reader) {
@@ -65,7 +63,7 @@ func Install(cmd string) error {
for _, i := range is {
errI := i.Install(cmd, bin)
if errI != nil {
- err = multierror.Append(err, errI)
+ err = errors.Join(err, errI)
}
}
@@ -105,7 +103,7 @@ func Uninstall(cmd string) error {
for _, i := range is {
errI := i.Uninstall(cmd, bin)
if errI != nil {
- err = multierror.Append(err, errI)
+ err = errors.Join(err, errI)
}
}