Skip to content

Commit

Permalink
fix(internal/gapicgen): add slashes to be more strict with matching (#…
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
codyoss authored Sep 14, 2022
1 parent 5aa2f57 commit 721baec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gapicgen/generator/genproto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 721baec

Please sign in to comment.