From 4cb8022f772526316dfa6485d335b1ed577274a2 Mon Sep 17 00:00:00 2001 From: Nghia Tran Date: Wed, 22 Jan 2025 13:14:44 -0800 Subject: [PATCH] annotate digest failure error Signed-off-by: Nghia Tran --- pkg/apk/apk/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/apk/apk/index.go b/pkg/apk/apk/index.go index f3f9c17a..4ee32cf5 100644 --- a/pkg/apk/apk/index.go +++ b/pkg/apk/apk/index.go @@ -421,7 +421,7 @@ func parseRepositoryIndex(ctx context.Context, u string, keys map[string][]byte, if _, hasDigest := indexDigest[sig.DigestAlgorithm]; !hasDigest { digest, err := sign.HashData(indexData, sig.DigestAlgorithm) if err != nil { - return nil, err + return nil, fmt.Errorf("failed to compute digest: %w", err) } indexDigest[sig.DigestAlgorithm] = digest }