Skip to content

Commit 154048d

Browse files
authored
Update toolchain (#99)
1 parent 6c11fb1 commit 154048d

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ jobs:
2424
- name: Lint
2525
uses: golangci/golangci-lint-action@v6
2626
with:
27-
version: v1.59.1
27+
version: v1.64.8
2828
args: --issues-exit-code=0
2929
only-new-issues: true

.golangci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ linters:
2424
- nonamedreturns
2525
- revive
2626
- staticcheck
27-
- tenv
2827
- typecheck
2928
- unconvert
3029
- unused
30+
- usetesting
3131
- wrapcheck
3232

3333
# Undecided

go.mod

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
module github.com/kgaughan/gcredstash
22

3-
go 1.18
3+
go 1.22
4+
5+
toolchain go1.23.2
46

57
require (
68
github.com/aws/aws-sdk-go v1.55.6

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ github.com/aws/aws-sdk-go v1.55.6/go.mod h1:eRwEWoyTWFMVYVQzKMNHWP5/RV4xIUGMQfXQ
33
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
44
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
55
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
6+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
67
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
78
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
89
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=

internal/testutils/cobra.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ import (
99
func NewDummyCommand() (*cobra.Command, *strings.Builder) {
1010
out := &strings.Builder{}
1111
cmd := &cobra.Command{}
12-
cmd.SetOutput(out)
12+
cmd.SetOut(out)
1313
return cmd, out
1414
}

internal/utils.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,17 +64,17 @@ func JSONMarshal(t interface{}) ([]byte, error) {
6464
}
6565

6666
func MaxKeyLen(items map[*string]*string) int {
67-
max := 0
67+
maxlen := 0
6868

6969
for key := range items {
7070
keyLen := len(*key)
7171

72-
if keyLen > max {
73-
max = keyLen
72+
if keyLen > maxlen {
73+
maxlen = keyLen
7474
}
7575
}
7676

77-
return max
77+
return maxlen
7878
}
7979

8080
func LookupEnvDefault(defaultVal string, envVars ...string) string {

0 commit comments

Comments
 (0)