Skip to content

Commit 8746ab6

Browse files
authored
Changes to satisfy gorls. (#9)
1 parent 2396dda commit 8746ab6

7 files changed

Lines changed: 17 additions & 9 deletions

File tree

.github/workflows/go.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up Go
1616
uses: actions/setup-go@v2
1717
with:
18-
go-version: 1.16
18+
go-version: 1.21
1919

2020
- name: Unit tests
2121
run: go test -v -coverprofile=cover.out ./...
@@ -24,3 +24,11 @@ jobs:
2424
uses: shogo82148/actions-goveralls@v1
2525
with:
2626
path-to-profile: cover.out
27+
continue-on-error: true
28+
29+
- name: Modver
30+
if: ${{ github.event_name == 'pull_request' }}
31+
uses: bobg/modver@v2.13.0
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN }}
34+
pull_request_url: https://github.com/${{ github.repository }}/pull/${{ github.event.number }}

check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package subcmd
33
import (
44
"reflect"
55

6-
"github.com/pkg/errors"
6+
"github.com/bobg/errors"
77
)
88

99
// Check checks that the type of subcmd.F matches the expectations set by subcmd.Params:

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (e *MissingSubcmdErr) Error() string {
4444
return fmt.Sprintf("missing subcommand, want one of: %s", strings.Join(subcmdNames(e.cmd), "; "))
4545
}
4646

47-
// Detail implements Usage.
47+
// Detail implements [UsageErr].
4848
func (e *MissingSubcmdErr) Detail() string {
4949
return missingUnknownSubcmd("Missing subcommand, want one of:", e.cmd)
5050
}

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module github.com/bobg/subcmd/v2
22

3-
go 1.14
3+
go 1.21
44

55
require (
6+
github.com/bobg/errors v1.1.0
67
github.com/google/go-cmp v0.5.6
7-
github.com/pkg/errors v0.9.1
88
)

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
github.com/bobg/errors v1.1.0 h1:gsVanPzJMpZQpwY+27/GQYElZez5CuMYwiIpk2A3RGw=
2+
github.com/bobg/errors v1.1.0/go.mod h1:Q4775qBZpnte7EGFJqmvnlB1U4pkI1XmU3qxqdp7Zcc=
13
github.com/google/go-cmp v0.5.6 h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
24
github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
3-
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
4-
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
55
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
66
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

parse.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"time"
1111

12-
"github.com/pkg/errors"
12+
"github.com/bobg/errors"
1313
)
1414

1515
// If variadic is false, the length of the resulting slice is len(params)+2.

subcmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"sort"
1313
"time"
1414

15-
"github.com/pkg/errors"
15+
"github.com/bobg/errors"
1616
)
1717

1818
var (

0 commit comments

Comments
 (0)