Skip to content

Commit 3a81108

Browse files
authored
fix(internal/gapicgen): don't gen version files for longrunning and debugger (#5698)
1 parent 06a5aef commit 3a81108

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

internal/gapicgen/generator/gapics.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,12 @@ func (g *GapicGenerator) microgen(conf *microgenConfig) error {
316316
}
317317

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

0 commit comments

Comments
 (0)