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

Struct moduleFileResolver

private/bufpkg/bufimage/module_file_resolver.go:37–47  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
37type 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
49func newModuleFileResolver(
50 ctx context.Context,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected