diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2018-03-27T14·12+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2018-05-30T11·27+0200 |
commit | e606cd412f6ad0622feff55dc2a023dc4b2fe238 (patch) | |
tree | 965150bd1f4ea487a661bcceceebfd48b5368e21 /src | |
parent | 6185d25e523a3cd223dd6f6aca10cf6ff15b4823 (diff) |
Fix assertion failure in storePathToHash()
Fixes https://github.com/NixOS/nix/issues/2015.
Diffstat (limited to 'src')
-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 1a0d12ca78c2..a8f3ae1ea6c5 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); { |