1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-14 21:11:04 +01:00

Properly fail when trying to register an incoherent realisation

This commit is contained in:
regnat 2021-05-19 16:19:46 +02:00
parent a5df669bc6
commit b8f7177a7b
4 changed files with 107 additions and 39 deletions

View file

@ -140,6 +140,12 @@ StorePath RealisedPath::path() const {
return std::visit([](auto && arg) { return arg.getPath(); }, raw);
}
bool Realisation::isCompatibleWith(const Realisation & other) const
{
assert (id == other.id);
return outPath == other.outPath;
}
void RealisedPath::closure(
Store& store,
const RealisedPath::Set& startPaths,