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

Method ExternalPath

private/bufpkg/bufprotosource/bufprotosource.go:249–249  ·  view source on GitHub ↗

ExternalPath returns the path that identifies this file externally. This will be unnormalized. Never empty. Falls back to Path if there is not an external path. Example: Assume we had the input path /foo/bar which is a local directory. Path: one/one.proto RootDirPath: proto ExternalPath: /foo/bar

()

Source from the content-addressed store, hash-verified

247 // RootDirPath: proto
248 // ExternalPath: /foo/bar/proto/one/one.proto
249 ExternalPath() string
250 // FullName is the module that this file came from.
251 //
252 // Note this *can* be nil if we did not build from a named module.

Callers 15

getConfigForBucketFunction · 0.65
ErrorMethod · 0.65
printModuleFunction · 0.65
StringMethod · 0.65
fileAnnotationCompareToFunction · 0.65
hashFunction · 0.65
printAsJUnitFunction · 0.65
groupAnnotationsByPathFunction · 0.65

Calls

no outgoing calls