mirror of
https://github.com/NixOS/nix
synced 2025-06-30 19:57:59 +02:00
Cleanup
This commit is contained in:
parent
b270869466
commit
958ec5de56
6 changed files with 19 additions and 29 deletions
|
@ -84,7 +84,7 @@ LockedInput::LockedInput(const nlohmann::json & json)
|
|||
, originalRef(getFlakeRef(json, "originalUrl", "originalUri", "original"))
|
||||
, info(parseTreeInfo(json))
|
||||
{
|
||||
if (!lockedRef.isImmutable())
|
||||
if (!lockedRef.input->isImmutable())
|
||||
throw Error("lockfile contains mutable flakeref '%s'", lockedRef);
|
||||
}
|
||||
|
||||
|
@ -136,7 +136,7 @@ nlohmann::json LockedInputs::toJson() const
|
|||
bool LockedInputs::isImmutable() const
|
||||
{
|
||||
for (auto & i : inputs)
|
||||
if (!i.second.lockedRef.isImmutable() || !i.second.isImmutable()) return false;
|
||||
if (!i.second.lockedRef.input->isImmutable() || !i.second.isImmutable()) return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue