MCPcopy Create free account
hub / github.com/bufbuild/buf / getImageFileInfosForModuleSet

Function getImageFileInfosForModuleSet

private/buf/bufctl/controller.go:1394–1409  ·  view source on GitHub ↗
(ctx context.Context, moduleSet bufmodule.ModuleSet)

Source from the content-addressed store, hash-verified

1392}
1393
1394func 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
1411func bootstrapResolver(
1412 unmarshaler protoencoding.Unmarshaler,

Callers 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…