Skip to content

Commit 4d25421

Browse files
Drop Go 1.23 support (#2065)
The Go team doesn't support this version anymore. This is required to update our golang.org/x/... dependencies.
1 parent 72dccd0 commit 4d25421

File tree

16 files changed

+39
-22
lines changed

16 files changed

+39
-22
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ jobs:
2525
- name: Run golangci-lint
2626
uses: golangci/golangci-lint-action@v8
2727
with:
28-
version: v2.1.0
28+
version: v2.4.0
2929
args: --verbose

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
go-version: [1.23.x, 1.24.x]
12+
go-version: [1.24.x]
1313
os: [ubuntu-latest, macos-latest, windows-latest, macos-14]
1414
runs-on: ${{ matrix.os }}
1515
steps:

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ linters:
3131
- nestif
3232
- nlreturn
3333
- noctx
34+
- noinlineerr
3435
- nonamedreturns
3536
- paralleltest
3637
- testableexamples
@@ -42,6 +43,7 @@ linters:
4243
- varnamelen
4344
- wrapcheck
4445
- wsl
46+
- wsl_v5
4547
settings:
4648
gocritic:
4749
disabled-checks:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ This is an **unsafe** way, the result string and `[]byte` buffer share the same
654654
- _Which GO versions are supported by fasthttp?_
655655

656656
We support the same versions the Go team supports.
657-
Currently that is Go 1.23.x and newer.
657+
Currently that is Go 1.24.x and newer.
658658
Older versions might work, but won't officially be supported.
659659

660660
- _Please provide real benchmark data and server information_

client_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,7 @@ func testClientRequestSetTimeoutError(t *testing.T, c *Client, n int) {
19471947

19481948
type readTimeoutConn struct {
19491949
net.Conn
1950+
19501951
wc chan struct{}
19511952
rc chan struct{}
19521953
t time.Duration
@@ -2266,6 +2267,7 @@ func (r *readErrorConn) SetWriteDeadline(_ time.Time) error {
22662267

22672268
type singleReadConn struct {
22682269
net.Conn
2270+
22692271
s string
22702272
n int
22712273
}
@@ -2305,6 +2307,7 @@ func (r *singleReadConn) SetWriteDeadline(_ time.Time) error {
23052307

23062308
type singleEchoConn struct {
23072309
net.Conn
2310+
23082311
b []byte
23092312
n int
23102313
}

client_timing_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import (
1818

1919
type fakeClientConn struct {
2020
net.Conn
21+
2122
ch chan struct{}
2223
s []byte
2324
n int

fasthttpproxy/dialer.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ type Dialer struct {
5454
// A best effort is made to parse the string and errors are
5555
// ignored.
5656
httpproxy.Config
57+
5758
// Attempt to connect to both ipv4 and ipv6 addresses if set to true.
5859
// By default, dial only to ipv4 addresses,
5960
// since unfortunately ipv6 remains broken in many networks worldwide :)

fasthttputil/inmemory_listener_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func testInmemoryListenerHTTP(t *testing.T, f func(t *testing.T, client *http.Cl
134134

135135
f(t, client)
136136

137-
ctx, cancel := context.WithTimeout(context.Background(), time.Millisecond*100)
137+
ctx, cancel := context.WithTimeout(t.Context(), time.Millisecond*100)
138138
defer cancel()
139139
server.Shutdown(ctx) //nolint:errcheck
140140
}

go.mod

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
module github.com/valyala/fasthttp
22

3-
go 1.23.0
3+
go 1.24.0
44

55
toolchain go1.24.1
66

77
require (
88
github.com/andybalholm/brotli v1.2.0
99
github.com/klauspost/compress v1.18.0
1010
github.com/valyala/bytebufferpool v1.0.0
11-
golang.org/x/crypto v0.41.0
12-
golang.org/x/net v0.43.0
13-
golang.org/x/sys v0.35.0
11+
golang.org/x/crypto v0.42.0
12+
golang.org/x/net v0.44.0
13+
golang.org/x/sys v0.36.0
1414
)
1515

16-
require golang.org/x/text v0.28.0 // indirect
16+
require golang.org/x/text v0.29.0 // indirect

go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6Kllzaw
66
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
77
github.com/xyproto/randomstring v1.0.5 h1:YtlWPoRdgMu3NZtP45drfy1GKoojuR7hmRcnhZqKjWU=
88
github.com/xyproto/randomstring v1.0.5/go.mod h1:rgmS5DeNXLivK7YprL0pY+lTuhNQW3iGxZ18UQApw/E=
9-
golang.org/x/crypto v0.41.0 h1:WKYxWedPGCTVVl5+WHSSrOBT0O8lx32+zxmHxijgXp4=
10-
golang.org/x/crypto v0.41.0/go.mod h1:pO5AFd7FA68rFak7rOAGVuygIISepHftHnr8dr6+sUc=
11-
golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE=
12-
golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg=
13-
golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=
14-
golang.org/x/sys v0.35.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
15-
golang.org/x/text v0.28.0 h1:rhazDwis8INMIwQ4tpjLDzUhx6RlXqZNPEM0huQojng=
16-
golang.org/x/text v0.28.0/go.mod h1:U8nCwOR8jO/marOQ0QbDiOngZVEBB7MAiitBuMjXiNU=
9+
golang.org/x/crypto v0.42.0 h1:chiH31gIWm57EkTXpwnqf8qeuMUi0yekh6mT2AvFlqI=
10+
golang.org/x/crypto v0.42.0/go.mod h1:4+rDnOTJhQCx2q7/j6rAN5XDw8kPjeaXEUR2eL94ix8=
11+
golang.org/x/net v0.44.0 h1:evd8IRDyfNBMBTTY5XRF1vaZlD+EmWx6x8PkhR04H/I=
12+
golang.org/x/net v0.44.0/go.mod h1:ECOoLqd5U3Lhyeyo/QDCEVQ4sNgYsqvCZ722XogGieY=
13+
golang.org/x/sys v0.36.0 h1:KVRy2GtZBrk1cBYA7MKu5bEZFxQk4NIDV6RLVcC8o0k=
14+
golang.org/x/sys v0.36.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
15+
golang.org/x/text v0.29.0 h1:1neNs90w9YzJ9BocxfsQNHKuAT4pkghyXc4nhZ6sJvk=
16+
golang.org/x/text v0.29.0/go.mod h1:7MhJOA9CD2qZyOKYazxdYMF85OwPdEr9jTtBpO7ydH4=

0 commit comments

Comments
 (0)