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

Function getB5DigestForBucketAndModuleDeps

private/bufpkg/bufmodule/digest.go:286–301  ·  view source on GitHub ↗
(
	ctx context.Context,
	bucketWithStorageMatcherApplied storage.ReadBucket,
	moduleDeps []ModuleDep,
)

Source from the content-addressed store, hash-verified

284}
285
286func getB5DigestForBucketAndModuleDeps(
287 ctx context.Context,
288 bucketWithStorageMatcherApplied storage.ReadBucket,
289 moduleDeps []ModuleDep,
290) (Digest, error) {
291 depDigests, err := xslices.MapError(
292 moduleDeps,
293 func(moduleDep ModuleDep) (Digest, error) {
294 return moduleDep.Digest(DigestTypeB5)
295 },
296 )
297 if err != nil {
298 return nil, err
299 }
300 return getB5DigestForBucketAndDepDigests(ctx, bucketWithStorageMatcherApplied, depDigests)
301}
302
303func getB5DigestForBucketAndDepModuleKeys(
304 ctx context.Context,

Calls 2

DigestMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…