( ctx context.Context, bucketWithStorageMatcherApplied storage.ReadBucket, depModuleKeys []ModuleKey, )
| 301 | } |
| 302 | |
| 303 | func 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 | // |
no test coverage detected
searching dependent graphs…