Skip to content

Commit 843a261

Browse files
committed
Fix linter and Dockerfile
1 parent 05d4a21 commit 843a261

File tree

4 files changed

+4
-12
lines changed

4 files changed

+4
-12
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
with:
2424
# This field is required. Dont set the patch version to always use
2525
# the latest patch version.
26-
version: v1.54.1
26+
version: v1.60.3

.golangci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@ run:
66
# timeout for analysis, e.g. 30s, 5m, default is 1m
77
deadline: 2m
88

9-
# which files to skip: they will be analyzed, but issues from them
10-
# won't be reported. Default value is empty list, but there is
11-
# no need to include all autogenerated files, we confidently recognize
12-
# autogenerated files. If it's not please let us know.
13-
skip-files:
14-
- ".*generated.*"
15-
- ".*_test.go"
16-
179
# all available settings of specific linters
1810
linters-settings:
1911
gocyclo:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Step 1: Use the official Golang image as the build environment.
22
# This image includes all the tools needed to compile Go applications.
3-
FROM golang:1.21 as builder
3+
FROM golang:1.23 as builder
44

55
# Version will be passed as a part of the build.
66
ARG VERSION=dev

internal/client/cfcrypto/cfcrypto_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func TestHandshake_encryptedClientHello(t *testing.T) {
5353
require.NoError(t, err)
5454

5555
transport := &http.Transport{
56-
DialTLSContext: func(ctx context.Context, network, addr string) (net.Conn, error) {
56+
DialTLSContext: func(_ context.Context, _, _ string) (net.Conn, error) {
5757
return tlsConn, nil
5858
},
5959
}
@@ -100,7 +100,7 @@ func TestHandshake_postQuantum(t *testing.T) {
100100
require.NoError(t, err)
101101

102102
transport := &http.Transport{
103-
DialTLSContext: func(ctx context.Context, network, addr string) (net.Conn, error) {
103+
DialTLSContext: func(_ context.Context, _, _ string) (net.Conn, error) {
104104
return tlsConn, nil
105105
},
106106
}

0 commit comments

Comments
 (0)