1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 06:01:48 +02: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

@ -47,6 +47,8 @@ struct Realisation {
static std::set<Realisation> closure(Store &, const std::set<Realisation> &);
static void closure(Store &, const std::set<Realisation> &, std::set<Realisation>& res);
bool isCompatibleWith(const Realisation & other) const;
StorePath getPath() const { return outPath; }
GENERATE_CMP(Realisation, me->id, me->outPath);