From e606cd412f6ad0622feff55dc2a023dc4b2fe238 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 27 Mar 2018 16:12:00 +0200 Subject: [PATCH] Fix assertion failure in storePathToHash() Fixes https://github.com/NixOS/nix/issues/2015. --- src/libstore/store-api.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 1a0d12ca7..a8f3ae1ea 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -253,6 +253,8 @@ std::string Store::getUri() bool Store::isValidPath(const Path & storePath) { + assertStorePath(storePath); + auto hashPart = storePathToHash(storePath); {