From 90902ffd98c50811f7ae9e9a8c73251c92be2a14 Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Wed, 21 Aug 2024 10:00:09 -0500 Subject: [PATCH] chore: add release level for datastore (#10719) Follow-up fix for post-processor error from: #10708 Also fix go.mod version for new clients. Fixes: #10715 --- internal/gapicgen/generator/genproto_test.go | 5 ++--- internal/postprocessor/config.yaml | 1 + internal/postprocessor/main.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/gapicgen/generator/genproto_test.go b/internal/gapicgen/generator/genproto_test.go index dbc1f4ea05d5..89f5bb3efad0 100644 --- a/internal/gapicgen/generator/genproto_test.go +++ b/internal/gapicgen/generator/genproto_test.go @@ -25,9 +25,8 @@ func TestFilterPackages(t *testing.T) { "google.golang.org/genproto/do/not/generate/me": {"foo.proto"}, } want := map[string][]string{ - "google.golang.org/genproto/googleapis/api/distribution": {"foo.proto"}, - "google.golang.org/genproto/googleapis/type/date_range": {"foo.proto"}, - "google.golang.org/genproto/googleapis/bigtable/admin/v2": {"foo.proto"}, + "google.golang.org/genproto/googleapis/api/distribution": {"foo.proto"}, + "google.golang.org/genproto/googleapis/type/date_range": {"foo.proto"}, } out, err := filterPackages(in) if err != nil { diff --git a/internal/postprocessor/config.yaml b/internal/postprocessor/config.yaml index 5ee72ea7ff33..dd075d82c51a 100644 --- a/internal/postprocessor/config.yaml +++ b/internal/postprocessor/config.yaml @@ -1047,6 +1047,7 @@ service-configs: - input-directory: google/datastore/v1 service-config: datastore_v1.yaml import-path: cloud.google.com/go/datastore/apiv1 + release-level-override: stable - input-directory: google/devtools/artifactregistry/v1 service-config: artifactregistry_v1.yaml import-path: cloud.google.com/go/artifactregistry/apiv1 diff --git a/internal/postprocessor/main.go b/internal/postprocessor/main.go index 9ffba45afc15..000f45d2d221 100644 --- a/internal/postprocessor/main.go +++ b/internal/postprocessor/main.go @@ -45,7 +45,7 @@ const ( // This is the default Go version that will be generated into new go.mod // files. It should be updated every time we drop support for old Go // versions. - defaultGoModuleVersion = "1.19" + defaultGoModuleVersion = "1.21" ) var (