Skip to content

Commit 28314b4

Browse files
committed
bump Go 1.13 and drop xerrors dependency
1 parent 1b4cddf commit 28314b4

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
module github.com/Songmu/gocredits
22

3-
go 1.12
4-
5-
require golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373
3+
go 1.13

go.sum

Lines changed: 0 additions & 2 deletions
This file was deleted.

run.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ package gocredits
22

33
import (
44
"bytes"
5+
"fmt"
56
"os/exec"
67
"strings"
7-
8-
"golang.org/x/xerrors"
98
)
109

1110
func run(command string, args ...string) (string, error) {
@@ -14,7 +13,7 @@ func run(command string, args ...string) (string, error) {
1413
cmd.Stderr = bufErr
1514
out, err := cmd.Output()
1615
if err != nil {
17-
return "", xerrors.Errorf("command %q failed with following output: %s: %w",
16+
return "", fmt.Errorf("command %q failed with following output: %s: %w",
1817
strings.Join(append([]string{command}, args...), " "),
1918
bufErr.String(),
2019
err,

0 commit comments

Comments
 (0)