Skip to content

Commit

Permalink
all: set Go language version to Go 1.21
Browse files Browse the repository at this point in the history
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 <lassefolger@google.com>
Auto-Submit: Michael Stapelberg <stapelberg@google.com>
Reviewed-by: Cassondra Foesch <cfoesch@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
  • Loading branch information
stapelberg authored and gopherbot committed May 13, 2024
1 parent 09393c1 commit f7dca67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module google.golang.org/protobuf

go 1.17
go 1.21

require (
github.com/golang/protobuf v1.5.0
Expand Down
9 changes: 3 additions & 6 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,10 @@ var (
protobufVersion = "27.0-rc1"

golangVersions = func() []string {
// Version policy: same version as is in the x/ repos' go.mod.
// Version policy: oldest supported version of Go.
return []string{
"1.17.13",
"1.18.10",
"1.19.13",
"1.20.12",
"1.21.5",
"1.21.10",
"1.22.3",
}
}()
golangLatest = golangVersions[len(golangVersions)-1]
Expand Down

0 comments on commit f7dca67

Please sign in to comment.