File tree Expand file tree Collapse file tree 6 files changed +10
-13
lines changed
Expand file tree Collapse file tree 6 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 1919 - uses : actions/checkout@v4
2020 - uses : actions/setup-go@v5
2121 with :
22- go-version : ' stable'
22+ go-version : " stable"
2323 - name : golangci-golint
2424 uses : golangci/golangci-lint-action@v6
2525 with :
Original file line number Diff line number Diff line change 1919 - " 1.19"
2020 - " 1.18"
2121 - " 1.17"
22- - " 1.16"
23- - " 1.15"
24- - " 1.14"
25- - " 1.13"
26-
2722 steps :
2823 - name : Set up Go ${{ matrix.go }}
2924 uses : actions/setup-go@v3
8075 env_vars : GO
8176 env :
8277 GO : ${{ matrix.go }}
83-
Original file line number Diff line number Diff line change 11# Go Dep
22vendor
3+
4+ # ignore golangci-lint binary if running locally
5+ bin /golangci-lint
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ module github.com/aws/aws-lambda-go
22
33go 1.18
44
5- require github.com/stretchr/testify v1.7.2
5+ require github.com/stretchr/testify v1.10.0
66
77require (
88 github.com/davecgh/go-spew v1.1.1 // indirect
Original file line number Diff line number Diff line change 1- github.com/davecgh/go-spew v1.1.0 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
21github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
32github.com/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
43github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM =
54github.com/pmezard/go-difflib v1.0.0 /go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4 =
6- github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
7- github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s =
8- github.com/stretchr/testify v1.7.2 /go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals =
5+ github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA =
6+ github.com/stretchr/testify v1.10.0 /go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY =
97gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM =
108gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
119gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA =
Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ func TestInvoke(t *testing.T) {
6464}
6565
6666func TestInvokeWithContext (t * testing.T ) {
67- key := struct {}{}
67+ // dummyKey creates a safe context to appease the linter
68+ type dummyKey struct {}
69+ var key dummyKey
6870 srv := NewFunction (& handlerOptions {
6971 handlerFunc : func (ctx context.Context , _ []byte ) (io.Reader , error ) {
7072 assert .Equal (t , "dummy" , ctx .Value (key ))
You can’t perform that action at this time.
0 commit comments