Fix 'nix flake update'

This commit is contained in:
Eelco Dolstra 2020-01-22 19:28:27 +01:00
parent 32f31a8c63
commit 90d55ed275

View file

@ -150,15 +150,7 @@ struct CmdFlakeUpdate : FlakeCommand
void run(nix::ref<nix::Store> store) override
{
auto evalState = getEvalState();
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
resolveFlake();
}
};