Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		
							
								
								
									
										9
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								main.go
									
									
									
									
									
								
							| @@ -205,8 +205,17 @@ func main() { | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	filesToGenerate := map[string]struct{}{} | ||||
| 	for _, file := range g.Request.FileToGenerate { | ||||
| 		filesToGenerate[file] = struct{}{} | ||||
| 	} | ||||
|  | ||||
| 	// Generate the encoders | ||||
| 	for _, file := range g.Request.GetProtoFile() { | ||||
| 		// Ignore files not in g.Request.FileToGenerate. | ||||
| 		if _, ok := filesToGenerate[*file.Name]; !ok { | ||||
| 			continue | ||||
| 		} | ||||
| 		if all { | ||||
| 			if singlePackageMode { | ||||
| 				if _, err = registry.LookupFile(file.GetName()); err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user