From 5c754b1b4fe4d7244c62483e66dd598a11e4ca9c Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Wed, 15 Jul 2026 02:54:37 +0900 Subject: [PATCH] blossom: fix check truncating hashes to 32 chars, a sha256 is 64 hex chars. --- blossom.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blossom.go b/blossom.go index 6bc1e0c..29256dc 100644 --- a/blossom.go +++ b/blossom.go @@ -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)