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 }