Skip to content

Commit 44e1d5a

Browse files
shuyama1BBBmau
authored andcommitted
fix mmv1 generation issue with PRODUCT specific (GoogleCloudPlatform#14215)
1 parent fa77904 commit 44e1d5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmv1/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ func GenerateProduct(productName string, productsForVersionChannel chan *api.Pro
286286
productApi.Objects = resources
287287
productApi.Validate()
288288

289+
providerToGenerate := newProvider(*forceProvider, *version, productApi, startTime)
289290
productsForVersionChannel <- productApi
290291

291292
if !slices.Contains(productsToGenerate, productName) {
@@ -295,7 +296,6 @@ func GenerateProduct(productName string, productsForVersionChannel chan *api.Pro
295296

296297
log.Printf("%s: Generating files", productName)
297298

298-
providerToGenerate := newProvider(*forceProvider, *version, productApi, startTime)
299299
providerToGenerate.Generate(*outputPath, productName, resourceToGenerate, generateCode, generateDocs)
300300
}
301301

0 commit comments

Comments
 (0)