Skip to content

Commit

Permalink
annotate digest failure error
Browse files Browse the repository at this point in the history
Signed-off-by: Nghia Tran <[email protected]>
  • Loading branch information
tcnghia committed Jan 22, 2025
1 parent d39d748 commit 4cb8022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apk/apk/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4cb8022

Please sign in to comment.