mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 14:06:16 +02:00
Assert that compatible realisations have the same dependencies
Should always hold, but that’s not necessarily obvious, so better enforce it
This commit is contained in:
parent
16fb7d8d95
commit
c878cee895
1 changed files with 5 additions and 1 deletions
|
@ -143,7 +143,11 @@ StorePath RealisedPath::path() const {
|
|||
bool Realisation::isCompatibleWith(const Realisation & other) const
|
||||
{
|
||||
assert (id == other.id);
|
||||
return outPath == other.outPath;
|
||||
if (outPath == other.outPath) {
|
||||
assert(dependentRealisations == other.dependentRealisations);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void RealisedPath::closure(
|
||||
|
|
Loading…
Reference in a new issue