Skip to content

Commit 8e79dc4

Browse files
authored
Deprecate Go 1.21 and add 1.24 (#1055)
* Deprecate Go 1.21 and add 1.24 * Update s2sx go.mod Remove old docs, prep for new release.
1 parent df8e99c commit 8e79dc4

File tree

7 files changed

+50
-113
lines changed

7 files changed

+50
-113
lines changed

.github/workflows/go.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
build:
1313
strategy:
1414
matrix:
15-
go-version: [1.21.x, 1.22.x, 1.23.x]
15+
go-version: [1.22.x, 1.23.x, 1.24.x]
1616
os: [ubuntu-latest, macos-latest, windows-latest]
1717
env:
1818
CGO_ENABLED: 0
@@ -60,7 +60,7 @@ jobs:
6060
- name: Set up Go
6161
uses: actions/[email protected]
6262
with:
63-
go-version: 1.23.x
63+
go-version: 1.24.x
6464

6565
- name: Checkout code
6666
uses: actions/checkout@v4
@@ -82,7 +82,7 @@ jobs:
8282
- name: Set up Go
8383
uses: actions/[email protected]
8484
with:
85-
go-version: 1.23.x
85+
go-version: 1.24.x
8686

8787
- name: Checkout code
8888
uses: actions/checkout@v4
@@ -125,7 +125,7 @@ jobs:
125125
- name: Set up Go
126126
uses: actions/[email protected]
127127
with:
128-
go-version: 1.23.x
128+
go-version: 1.24.x
129129

130130
- name: Checkout code
131131
uses: actions/checkout@v4
@@ -151,7 +151,7 @@ jobs:
151151
- name: Set up Go
152152
uses: actions/[email protected]
153153
with:
154-
go-version: 1.22.x
154+
go-version: 1.24.x
155155

156156
- name: Checkout code
157157
uses: actions/checkout@v4
@@ -182,7 +182,7 @@ jobs:
182182
- name: Set up Go
183183
uses: actions/[email protected]
184184
with:
185-
go-version: 1.23.x
185+
go-version: 1.24.x
186186
- name: Checkout code
187187
uses: actions/checkout@v4
188188

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: Set up Go
2222
uses: actions/setup-go@5a083d0e9a84784eb32078397cf5459adecb4c40 # v5.2.0
2323
with:
24-
go-version: 1.23.x
24+
go-version: 1.24.x
2525
-
2626
name: Run GoReleaser
2727
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf # v6.1.0

README.md

+34-95
Large diffs are not rendered by default.

fse/fse_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -210,12 +210,12 @@ func TestReadNCount(t *testing.T) {
210210
got := s2.norm[:s2.symbolLen]
211211
if !reflect.DeepEqual(want, got) {
212212
if s.actualTableLog != s2.actualTableLog {
213-
t.Errorf(name+"norm table, want tablelog: %d, got %d", s.actualTableLog, s2.actualTableLog)
213+
t.Errorf("%snorm table, want tablelog: %d, got %d", name, s.actualTableLog, s2.actualTableLog)
214214
}
215215
if s.symbolLen != s2.symbolLen {
216-
t.Errorf(name+"norm table, want size: %d, got %d", s.symbolLen, s2.symbolLen)
216+
t.Errorf("%snorm table, want size: %d, got %d", name, s.symbolLen, s2.symbolLen)
217217
}
218-
t.Errorf(name + "norm table, got delta: \n")
218+
t.Errorf("%snorm table, got delta: \n", name)
219219
return
220220
}
221221
for i, dec := range s2.decTable {
@@ -228,19 +228,19 @@ func TestReadNCount(t *testing.T) {
228228
}
229229
if dc != nil {
230230
if len(buf0) != len(dc) {
231-
t.Errorf(name+"decompressed, want size: %d, got %d", len(buf0), len(dc))
231+
t.Errorf("%sdecompressed, want size: %d, got %d", name, len(buf0), len(dc))
232232
if len(buf0) > len(dc) {
233233
buf0 = buf0[:len(dc)]
234234
} else {
235235
dc = dc[:len(buf0)]
236236
}
237237
if !bytes.Equal(buf0, dc) {
238-
t.Errorf(name+"decompressed, got delta: (in) %v != (out) %v\n", buf0, dc)
238+
t.Errorf("%sdecompressed, got delta: (in) %v != (out) %v\n", name, buf0, dc)
239239
}
240240
return
241241
}
242242
if !bytes.Equal(buf0, dc) {
243-
t.Errorf(name + "decompressed, got delta.")
243+
t.Errorf("%sdecompressed, got delta.", name)
244244
}
245245
if !t.Failed() {
246246
t.Log("... roundtrip ok!")

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/klauspost/compress
22

3-
go 1.21
3+
go 1.22
44

55
retract (
66
// https://github.com/klauspost/compress/pull/503

s2/cmd/_s2sx/go.mod

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/klauspost/compress/s2/cmd/s2sx
22

3-
go 1.21
4-
5-
toolchain go1.22.4
3+
go 1.22
64

75
require github.com/klauspost/compress v1.11.9
86

s2sx.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module github.com/klauspost/compress
22

3-
go 1.21
3+
go 1.22

0 commit comments

Comments
 (0)