From 721baec75f55897f0435fcf5eeb7fc91557b575c Mon Sep 17 00:00:00 2001 From: Cody Oss <6331106+codyoss@users.noreply.github.com> Date: Wed, 14 Sep 2022 15:41:45 -0500 Subject: [PATCH] fix(internal/gapicgen): add slashes to be more strict with matching (#6672) We had a false negative show up today where change for: "google.golang.org/genproto/googleapis/storagetransfer" were not generated when they should have been. --- internal/gapicgen/generator/genproto.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gapicgen/generator/genproto.go b/internal/gapicgen/generator/genproto.go index e56d5091a135..e9d4eaf3468d 100644 --- a/internal/gapicgen/generator/genproto.go +++ b/internal/gapicgen/generator/genproto.go @@ -77,8 +77,8 @@ func NewGenprotoGenerator(c *Config) *GenprotoGenerator { } var skipPrefixes = []string{ - "google.golang.org/genproto/googleapis/ads", - "google.golang.org/genproto/googleapis/storage", + "google.golang.org/genproto/googleapis/ads/", + "google.golang.org/genproto/googleapis/storage/", } func hasPrefix(s string, prefixes []string) bool {