From 9ef6048d784a298f384affdec941b5b38c61346c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 5 Jun 2020 20:52:23 +0200 Subject: [PATCH] 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. --- src/libexpr/flake/lockfile.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libexpr/flake/lockfile.cc b/src/libexpr/flake/lockfile.cc index 68e587650..f26baa697 100644 --- a/src/libexpr/flake/lockfile.cc +++ b/src/libexpr/flake/lockfile.cc @@ -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,