all: set Go language version to Go 1.20

This aligns our policy with the Google Cloud Client Libraries policy.

Other large packages like the AWS SDK follow that same policy.

fixes golang/protobuf#1613

Change-Id: I33642d3c5e4d79d3b5cdee0e0ff546affa46693e
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/586395
Reviewed-by: Lasse Folger <lassefolger@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Michael Stapelberg 2024-05-17 10:32:04 +02:00
parent b3f1c7a8f5
commit ef7418827c
2 changed files with 5 additions and 2 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module google.golang.org/protobuf
go 1.21
go 1.20
require (
github.com/golang/protobuf v1.5.0

View File

@ -36,8 +36,11 @@ var (
protobufVersion = "27.0-rc1"
golangVersions = func() []string {
// Version policy: oldest supported version of Go.
// Version policy: oldest supported version of Go, plus the version before that.
// This matches the version policy of the Google Cloud Client Libraries:
// https://cloud.google.com/go/getting-started/supported-go-versions
return []string{
"1.20.14",
"1.21.10",
"1.22.3",
}