mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 07:22:43 +01:00
build-remote: Don't require signatures
This restores the old behaviour.
This commit is contained in:
parent
031d70e500
commit
3a5f04f48c
6 changed files with 20 additions and 16 deletions
|
|
@ -915,6 +915,8 @@ void LocalStore::invalidatePath(State & state, const Path & path)
|
|||
void LocalStore::addToStore(const ValidPathInfo & info, const ref<std::string> & nar,
|
||||
bool repair, bool dontCheckSigs, std::shared_ptr<FSAccessor> accessor)
|
||||
{
|
||||
assert(info.narHash);
|
||||
|
||||
Hash h = hashString(htSHA256, *nar);
|
||||
if (h != info.narHash)
|
||||
throw Error(format("hash mismatch importing path ‘%s’; expected hash ‘%s’, got ‘%s’") %
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue