Skip to content

Commit

Permalink
Fix assertion failure in storePathToHash()
Browse files Browse the repository at this point in the history
Fixes NixOS#2015.
  • Loading branch information
edolstra authored and Anton-Latukha committed Jul 12, 2018
1 parent b4c1c54 commit e2b3544
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libstore/store-api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ std::string Store::getUri()

bool Store::isValidPath(const Path & storePath)
{
assertStorePath(storePath);

auto hashPart = storePathToHash(storePath);

{
Expand Down

0 comments on commit e2b3544

Please sign in to comment.