mirror of
https://github.com/NixOS/nix.git
synced 2025-11-11 21:16:02 +01: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…
Add table
Add a link
Reference in a new issue