Say what the restore digest is, since it is not an identity

The last report quoted the restored sha256 as though two runs agreeing on it
meant they had run the same source. They had not: `text=auto` gives a Windows
checkout carriage returns, so the win32-x64 run restored to b163cab7 and the
linux-x64 run to e3c6528a from the same commit. The digest is a restore check —
the file this run started with is the file it ended with — and it is said where
it is printed, so the next report does not borrow it for something it cannot do.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-17 03:11:05 +02:00
commit 244154e2f5

View file

@ -1070,6 +1070,11 @@ for (const [name, target] of Object.entries(targets)) {
}
if (!target.dist) {
// This digest says the file this run started with is the file it ended with.
// It is not an identity for the source: `text=auto` gives a Windows checkout
// carriage returns, so two clones of the same commit restore to two
// different digests. The identity that survives a clone is the commit, or
// `git rev-parse HEAD:<path>` for one file.
results.push({ target: name, outcome: "restored", rule: `${target.file} sha256=${originalDigest}` });
continue;
}