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

Function GetGoogleapisDirPath

private/buf/buftesting/buftesting.go:105–118  ·  view source on GitHub ↗

GetGoogleapisDirPath gets the path to a clone of googleapis.

(tb testing.TB, buftestingDirPath string)

Source from the content-addressed store, hash-verified

103
104// GetGoogleapisDirPath gets the path to a clone of googleapis.
105func GetGoogleapisDirPath(tb testing.TB, buftestingDirPath string) string {
106 googleapisDirPath := filepath.Join(buftestingDirPath, testGoogleapisDirPath)
107 require.NoError(
108 tb,
109 testArchiveReader.GetArchive(
110 tb.Context(),
111 googleapisDirPath,
112 "googleapis",
113 "googleapis",
114 testGoogleapisCommit,
115 ),
116 )
117 return googleapisDirPath
118}
119
120// GetProtocFilePaths gets the file paths for protoc.
121//

Calls 1

GetArchiveMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…