Skip to content

Commit

Permalink
fix(internal/gapicgen): don't gen version files for longrunning and d…
Browse files Browse the repository at this point in the history
…ebugger (#5698)
  • Loading branch information
codyoss committed Feb 24, 2022
1 parent 06a5aef commit 3a81108
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/gapicgen/generator/gapics.go
Expand Up @@ -316,6 +316,12 @@ func (g *GapicGenerator) microgen(conf *microgenConfig) error {
}

func (g *GapicGenerator) genVersionFile(conf *microgenConfig) error {
// These directories are not modules on purpose, don't generate a version
// file for them.
if conf.importPath == "cloud.google.com/go/longrunning/autogen" ||
conf.importPath == "cloud.google.com/go/debugger/apiv2" {
return nil
}
relDir := strings.TrimPrefix(conf.importPath, "cloud.google.com/go/")
rootPackage := strings.Split(relDir, "/")[0]
rootModInternal := fmt.Sprintf("cloud.google.com/go/%s/internal", rootPackage)
Expand Down

0 comments on commit 3a81108

Please sign in to comment.