blossom: fix check truncating hashes to 32 chars, a sha256 is 64 hex chars.

This commit is contained in:
Yasuhiro Matsumoto
2026-07-15 10:49:13 +09:00
parent 0ad2fa3e65
commit 5c754b1b4f
+3 -2
View File
@@ -238,8 +238,9 @@ if any of the files are not found the command will fail, otherwise it will succe
hasError := false
for _, hash := range c.Args().Slice() {
if len(hash) > 32 {
hash = hash[0:32]
// a sha256 is 64 hex characters, anything after that is an extension
if len(hash) > 64 {
hash = hash[0:64]
}
err := client.Check(ctx, hash)