Skip to content

Commit

Permalink
chore(internal/gapicgen): add omit-snippets flag to gapics.go (#7520)
Browse files Browse the repository at this point in the history
  • Loading branch information
quartzmo authored Mar 8, 2023
1 parent 64c6a6f commit b6f652b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/gapicgen/generator/gapics.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,8 @@ func (g *GapicGenerator) microgen(conf *MicrogenConfig) error {
"--experimental_allow_proto3_optional",
"-I", g.protoDir,
"--go_gapic_out", g.googleCloudDir,
// TODO(chrisdsmith): Enable snippets by deleting the next line after removing internal/gapicgen/gensnippets.
"--go_gapic_opt", "omit-snippets",
"--go_gapic_opt", fmt.Sprintf("go-gapic-package=%s;%s", conf.ImportPath, conf.Pkg),
"--go_gapic_opt", fmt.Sprintf("api-service-config=%s", filepath.Join(conf.InputDirectoryPath, conf.ApiServiceConfigPath))}

Expand Down

0 comments on commit b6f652b

Please sign in to comment.