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:
parent
a5df669bc6
commit
b8f7177a7b
4 changed files with 107 additions and 39 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue