File tree 3 files changed +9
-5
lines changed
3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,13 @@ jobs:
10
10
steps :
11
11
- uses : actions/setup-go@v3
12
12
with :
13
- go-version : ' ^1 '
14
-
13
+ go-version : " ^1 "
14
+
15
15
- run : go version
16
16
17
17
- uses : actions/checkout@v3
18
18
19
19
- name : golangci-golint
20
20
run : |
21
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.55.2
21
+ curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.63.4
22
22
./bin/golangci-lint run -v ./...
23
-
Original file line number Diff line number Diff line change 1
1
# Go Dep
2
2
vendor
3
+
4
+ # ignore golangci-lint binary if running locally
5
+ bin /golangci-lint
Original file line number Diff line number Diff line change @@ -64,7 +64,9 @@ func TestInvoke(t *testing.T) {
64
64
}
65
65
66
66
func 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
68
70
srv := NewFunction (& handlerOptions {
69
71
handlerFunc : func (ctx context.Context , _ []byte ) (io.Reader , error ) {
70
72
assert .Equal (t , "dummy" , ctx .Value (key ))
You can’t perform that action at this time.
0 commit comments