From 90d55ed275220962f7239f4869905b0237dd24fb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 22 Jan 2020 19:28:27 +0100 Subject: [PATCH] Fix 'nix flake update' --- src/nix/flake.cc | 10 +--------- 1 file changed, 1 insertion(+), 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 store) override { auto evalState = getEvalState(); - - auto flakeRef = getFlakeRef(); - -#if 0 - if (std::get_if(&flakeRef.data)) - updateLockFile(*evalState, flakeRef, true); - else - throw Error("cannot update lockfile of flake '%s'", flakeRef); -#endif + resolveFlake(); } };