moduleFileResolver resolves sources and module information for module files, including well-known types. This is used by the compiler and image building processes. [context.Context] is embedded in this case for [storage.ReadBucket] APIs.
| 35 | // well-known types. This is used by the compiler and image building processes. |
| 36 | // [context.Context] is embedded in this case for [storage.ReadBucket] APIs. |
| 37 | type moduleFileResolver struct { |
| 38 | ctx context.Context |
| 39 | moduleReadBucket bufmodule.ModuleReadBucket |
| 40 | pathToExternalPath map[string]string |
| 41 | pathToLocalPath map[string]string |
| 42 | localPathToPath map[string]string |
| 43 | nonImportPaths map[string]struct{} |
| 44 | pathToFullName map[string]bufparse.FullName |
| 45 | pathToCommitID map[string]uuid.UUID |
| 46 | lock sync.RWMutex |
| 47 | } |
| 48 | |
| 49 | func newModuleFileResolver( |
| 50 | ctx context.Context, |
nothing calls this directly
no outgoing calls
no test coverage detected