mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 08:16:14 +02:00
Fix 'nix flake update'
This commit is contained in:
parent
32f31a8c63
commit
90d55ed275
1 changed files with 1 additions and 9 deletions
|
@ -150,15 +150,7 @@ struct CmdFlakeUpdate : FlakeCommand
|
||||||
void run(nix::ref<nix::Store> store) override
|
void run(nix::ref<nix::Store> store) override
|
||||||
{
|
{
|
||||||
auto evalState = getEvalState();
|
auto evalState = getEvalState();
|
||||||
|
resolveFlake();
|
||||||
auto flakeRef = getFlakeRef();
|
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (std::get_if<FlakeRef::IsPath>(&flakeRef.data))
|
|
||||||
updateLockFile(*evalState, flakeRef, true);
|
|
||||||
else
|
|
||||||
throw Error("cannot update lockfile of flake '%s'", flakeRef);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue