From 8316012ca6d97749012a3ed6b3015e8aa7e30ad3 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 10 Nov 2026 09:21:46 +0100 Subject: [PATCH] write-sha256sum: generate checksums in binary mode Use `sha256sum --binary` when generating checksum files for static archives, so the checksum explicitly indicates binary mode. Before: docker-engine_29.10.0-rc.1.tgz After: *docker-engine_29.10.0-rc.1.tgz On Linux, both modes produce identical checksums, but the binary marker is more appropriate for archives and avoids potential text-mode conversion when verifying on other platforms. updates 7d994c2d1fe6320f75c0242d78c77687cdc4ed46 updates 810d7bd601d2350906c5088b40e5ef9e5483fb1a Signed-off-by: Sebastiaan van Stijn --- hack/scripts/write-sha256sum.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/scripts/write-sha256sum.sh b/hack/scripts/write-sha256sum.sh index 17d8a8b3..faa57ad9 100755 --- a/hack/scripts/write-sha256sum.sh +++ b/hack/scripts/write-sha256sum.sh @@ -36,5 +36,5 @@ esac ( set -x cd "$dir" - sha256sum "$name" > "${name}.sha256" + sha256sum --binary "$name" > "${name}.sha256" )