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:
parent
b985f07887
commit
244154e2f5
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue