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

Method GetArchive

private/pkg/github/githubtesting/githubtesting.go:38–38  ·  view source on GitHub ↗

GetArchive gets the GitHub archive and untars it to the output directory path. The root directory within the tarball is stripped. If the directory already exists, this is a no-op. Uses file locking to make sure the no-op works properly across multiple process invocations, which is needed for examp

(
		ctx context.Context,
		outputDirPath string,
		owner string,
		repository string,
		ref string,
	)

Source from the content-addressed store, hash-verified

36 //
37 // Only use for testing.
38 GetArchive(
39 ctx context.Context,
40 outputDirPath string,
41 owner string,

Callers 1

GetGoogleapisDirPathFunction · 0.65

Implementers 1

archiveReaderprivate/pkg/github/githubtesting/archi

Calls

no outgoing calls

Tested by

no test coverage detected