diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-01-22 19:28:27 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-01-22 19:28:27 +0100 |
commit | 90d55ed275220962f7239f4869905b0237dd24fb (patch) | |
tree | 74dcda764ff259a6f3578b6051ddb3f8bdf26cea | |
parent | 32f31a8c63d35a8ecfd341802465afacbe8d5759 (diff) |
Fix 'nix flake update'
-rw-r--r-- | src/nix/flake.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index bfff682d9..4f43f549b 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -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(); } }; |