Fix assertion failure in storePathToHash()

Fixes https://github.com/NixOS/nix/issues/2015.
This commit is contained in:
Eelco Dolstra 2018-03-27 16:12:00 +02:00
parent 6185d25e52
commit e606cd412f
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
1 changed files with 2 additions and 0 deletions

View File

@ -253,6 +253,8 @@ std::string Store::getUri()
bool Store::isValidPath(const Path & storePath)
{
assertStorePath(storePath);
auto hashPart = storePathToHash(storePath);
{