Skip to content

Commit 0af3f0f

Browse files
committed
all: set Go language version to Go 1.23
Go 1.25 was released recently. Change-Id: I5e2c9ad87bc0067dac912d6f80c793e06e87e63b Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/696316 Reviewed-by: Lasse Folger <lassefolger@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent 5ccbdec commit 0af3f0f

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

encoding/protowire/wire_test.go

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import (
99
"encoding/hex"
1010
"io"
1111
"math"
12+
"slices"
1213
"strings"
1314
"testing"
1415
)
@@ -679,22 +680,13 @@ func TestZigZag(t *testing.T) {
679680
}
680681
}
681682

682-
// TODO(go1.23): use slices.Repeat
683-
var testvals = func() []uint64 {
684-
// These values are representative for the values that we observe when
685-
// running benchmarks extracted from Google production workloads.
686-
vals := []uint64{
687-
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
688-
55, 66, 77, 88, 99, 100,
689-
123456789, 98765432,
690-
}
691-
newslice := make([]uint64, 100*len(vals))
692-
n := copy(newslice, vals)
693-
for n < len(newslice) {
694-
n += copy(newslice[n:], newslice[:n])
695-
}
696-
return newslice
697-
}()
683+
// These values are representative for the values that we observe when
684+
// running benchmarks extracted from Google production workloads.
685+
var testvals = slices.Repeat([]uint64{
686+
1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
687+
55, 66, 77, 88, 99, 100,
688+
123456789, 98765432,
689+
}, 100)
698690

699691
func BenchmarkSizeVarint(b *testing.B) {
700692
var total int

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module google.golang.org/protobuf
22

3-
go 1.22
3+
go 1.23
44

55
require (
66
github.com/golang/protobuf v1.5.0

integration_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ var (
4040
// This matches the version policy of the Google Cloud Client Libraries:
4141
// https://cloud.google.com/go/getting-started/supported-go-versions
4242
return []string{
43-
"1.22.12",
44-
"1.23.9",
45-
"1.24.2",
43+
"1.23.12",
44+
"1.24.6",
45+
"1.25.0",
4646
}
4747
}()
4848
golangLatest = golangVersions[len(golangVersions)-1]

0 commit comments

Comments
 (0)