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

Function getB5DigestForBucketAndDepModuleKeys

private/bufpkg/bufmodule/digest.go:303–318  ·  view source on GitHub ↗
(
	ctx context.Context,
	bucketWithStorageMatcherApplied storage.ReadBucket,
	depModuleKeys []ModuleKey,
)

Source from the content-addressed store, hash-verified

301}
302
303func getB5DigestForBucketAndDepModuleKeys(
304 ctx context.Context,
305 bucketWithStorageMatcherApplied storage.ReadBucket,
306 depModuleKeys []ModuleKey,
307) (Digest, error) {
308 depDigests, err := xslices.MapError(
309 depModuleKeys,
310 func(moduleKey ModuleKey) (Digest, error) {
311 return moduleKey.Digest()
312 },
313 )
314 if err != nil {
315 return nil, err
316 }
317 return getB5DigestForBucketAndDepDigests(ctx, bucketWithStorageMatcherApplied, depDigests)
318}
319
320// getB5Digest computes a b5 Digest for the given set of module files and dependencies.
321//

Callers 2

newModuleDataFunction · 0.85

Calls 2

DigestMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…