We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06a5aef commit 3a81108Copy full SHA for 3a81108
1 file changed
internal/gapicgen/generator/gapics.go
@@ -316,6 +316,12 @@ func (g *GapicGenerator) microgen(conf *microgenConfig) error {
316
}
317
318
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
+ }
325
relDir := strings.TrimPrefix(conf.importPath, "cloud.google.com/go/")
326
rootPackage := strings.Split(relDir, "/")[0]
327
rootModInternal := fmt.Sprintf("cloud.google.com/go/%s/internal", rootPackage)
0 commit comments