From ef7418827c4e1f83e93779b9f244ad84d96a4d94 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 17 May 2024 10:32:04 +0200 Subject: [PATCH] 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 LUCI-TryBot-Result: Go LUCI --- go.mod | 2 +- integration_test.go | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/go.mod b/go.mod index 7bd7b511..3c478dcd 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module google.golang.org/protobuf -go 1.21 +go 1.20 require ( github.com/golang/protobuf v1.5.0 diff --git a/integration_test.go b/integration_test.go index 23ecd69d..7f99eb3e 100644 --- a/integration_test.go +++ b/integration_test.go @@ -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", }