Skip to content

Commit

Permalink
all: set Go language version to Go 1.20
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stapelberg committed May 17, 2024
1 parent b3f1c7a commit ef74188
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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.21
go 1.20

require (
github.com/golang/protobuf v1.5.0
Expand Down
5 changes: 4 additions & 1 deletion integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand Down

0 comments on commit ef74188

Please sign in to comment.