diffLockFiles(): Fix assertion failure

There are some cases where this inequality didn't hold, in particular
due to the Input / TreeInfo merge, where we're not always showing
narHash.
This commit is contained in:
Eelco Dolstra 2020-06-05 20:52:23 +02:00
parent 488ff83e6b
commit 9ef6048d78

View file

@ -243,7 +243,6 @@ std::string diffLockFiles(const LockFile & oldLocks, const LockFile & newLocks)
++i;
} else {
if (!(i->second->lockedRef == j->second->lockedRef)) {
assert(i->second->lockedRef.to_string() != j->second->lockedRef.to_string());
res += fmt("* Updated '%s': '%s' -> '%s'\n",
concatStringsSep("/", i->first),
i->second->lockedRef,