(ctx context.Context, moduleSet bufmodule.ModuleSet)
| 1392 | } |
| 1393 | |
| 1394 | func getImageFileInfosForModuleSet(ctx context.Context, moduleSet bufmodule.ModuleSet) ([]bufimage.ImageFileInfo, error) { |
| 1395 | // Sorted. |
| 1396 | fileInfos, err := bufmodule.GetFileInfos( |
| 1397 | ctx, |
| 1398 | bufmodule.ModuleSetToModuleReadBucketWithOnlyProtoFiles(moduleSet), |
| 1399 | ) |
| 1400 | if err != nil { |
| 1401 | return nil, err |
| 1402 | } |
| 1403 | return xslices.Map( |
| 1404 | fileInfos, |
| 1405 | func(fileInfo bufmodule.FileInfo) bufimage.ImageFileInfo { |
| 1406 | return bufimage.ImageFileInfoForModuleFileInfo(fileInfo) |
| 1407 | }, |
| 1408 | ), nil |
| 1409 | } |
| 1410 | |
| 1411 | func bootstrapResolver( |
| 1412 | unmarshaler protoencoding.Unmarshaler, |
no test coverage detected
searching dependent graphs…