mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +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
|
bool Realisation::isCompatibleWith(const Realisation & other) const
|
||||||
{
|
{
|
||||||
assert (id == other.id);
|
assert (id == other.id);
|
||||||
return outPath == other.outPath;
|
if (outPath == other.outPath) {
|
||||||
|
assert(dependentRealisations == other.dependentRealisations);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RealisedPath::closure(
|
void RealisedPath::closure(
|
||||||
|
|
Loading…
Reference in a new issue