Skip to content

Commit

Permalink
fix(internal/gapicgen): restore fmting proto files (#4789)
Browse files Browse the repository at this point in the history
This should be done pre-resetUnknownVersion check to reduce diffs
and release PRs generated post regen.
  • Loading branch information
codyoss authored Sep 22, 2021
1 parent ad373ee commit 5606b54
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/gapicgen/generator/gapics.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ func (g *GapicGenerator) Regen(ctx context.Context) error {
return err
}

// Get rid of diffs related to bad formatting.
if err := gocmd.Vet(g.googleCloudDir); err != nil {
return err
}

if err := g.resetUnknownVersion(); err != nil {
return err
}
Expand Down

0 comments on commit 5606b54

Please sign in to comment.