Skip to content

Commit f7dca67

Browse files
stapelberggopherbot
authored andcommitted
all: set Go language version to Go 1.21
Go 1.21 is the oldest currently supported version of Go, see https://go.dev/doc/devel/release#policy All supported Go versions (1.21 and 1.22) support forward compatibility and toolchain management, see https://go.dev/blog/toolchain People stuck on much older versions of Go should stick to older versions of Go Protobuf, too. fixes golang/protobuf#1613 Change-Id: Id997efd8b47949e82d073c1d26a51d27620f4b82 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/585095 Reviewed-by: Lasse Folger <[email protected]> Auto-Submit: Michael Stapelberg <[email protected]> Reviewed-by: Cassondra Foesch <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 09393c1 commit f7dca67

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

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.17
3+
go 1.21
44

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

integration_test.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,10 @@ var (
3737
protobufVersion = "27.0-rc1"
3838

3939
golangVersions = func() []string {
40-
// Version policy: same version as is in the x/ repos' go.mod.
40+
// Version policy: oldest supported version of Go.
4141
return []string{
42-
"1.17.13",
43-
"1.18.10",
44-
"1.19.13",
45-
"1.20.12",
46-
"1.21.5",
42+
"1.21.10",
43+
"1.22.3",
4744
}
4845
}()
4946
golangLatest = golangVersions[len(golangVersions)-1]

0 commit comments

Comments
 (0)