Skip to content

Commit 3ee4579

Browse files
committed
restore
1 parent e35a711 commit 3ee4579

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/librarian/golang/generate.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ func buildGAPICImportPath(goAPI *config.GoAPI) string {
184184
// generated package into the library directory, fixing version paths, and removing any paths configured
185185
// for deletion.
186186
func moveGeneratedFiles(library *config.Library, outDir string) error {
187+
if len(library.APIs) == 0 {
188+
return nil
189+
}
187190
src := filepath.Join(outDir, "cloud.google.com", "go")
188191
if _, err := os.Stat(src); err != nil {
189192
return fmt.Errorf("cannot access directory %q: %w", src, err)

0 commit comments

Comments
 (0)