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

Function ModuleKeyToRegistryCommitID

private/bufpkg/bufmodule/registry_commit_id.go:36–41  ·  view source on GitHub ↗

ModuleKeyToRegistryCommitID converts the ModuleKey to a RegistryCommitID.

(moduleKey ModuleKey)

Source from the content-addressed store, hash-verified

34
35// ModuleKeyToRegistryCommitID converts the ModuleKey to a RegistryCommitID.
36func ModuleKeyToRegistryCommitID(moduleKey ModuleKey) RegistryCommitID {
37 return NewRegistryCommitID(
38 moduleKey.FullName().Registry(),
39 moduleKey.CommitID(),
40 )
41}

Calls 4

NewRegistryCommitIDFunction · 0.85
RegistryMethod · 0.65
FullNameMethod · 0.65
CommitIDMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…