mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
If hashes do not match, print them in base-32 for SHA-1/SHA-256
Fixes #57.
This commit is contained in:
parent
a28b4445a4
commit
4c34d384e6
3 changed files with 10 additions and 1 deletions
|
@ -2228,7 +2228,7 @@ void DerivationGoal::computeClosure()
|
|||
if (h != h2)
|
||||
throw BuildError(
|
||||
format("output path `%1%' should have %2% hash `%3%', instead has `%4%'")
|
||||
% path % i->second.hashAlgo % printHash(h) % printHash(h2));
|
||||
% path % i->second.hashAlgo % printHash16or32(h) % printHash16or32(h2));
|
||||
}
|
||||
|
||||
/* Get rid of all weird permissions. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue