diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-03-27 16:12:00 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-05-30 13:27:19 +0200 |
commit | e606cd412f6ad0622feff55dc2a023dc4b2fe238 (patch) | |
tree | 965150bd1f4ea487a661bcceceebfd48b5368e21 /src/libstore | |
parent | 6185d25e523a3cd223dd6f6aca10cf6ff15b4823 (diff) |
Fix assertion failure in storePathToHash()
Fixes https://github.com/NixOS/nix/issues/2015.
Diffstat (limited to 'src/libstore')
-rw-r--r-- | src/libstore/store-api.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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); { |