diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-01-22 20:59:59 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-01-22 20:59:59 +0100 |
commit | 872a22fa2344bdb95e0697bca168d6798d60ff5d (patch) | |
tree | 9d7320564423fd55300ec1ba2c9d159859923a78 /src/nix/flake.cc | |
parent | b5c9dbc84f31a1e9d1e5b6642b1716daa13c18ed (diff) |
resolveFlake -> lockFlake
"resolve" is ambiguous (also used for registry resolution).
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r-- | src/nix/flake.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 4f43f549b..f7e329b49 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -41,9 +41,9 @@ public: return flake::getFlake(*evalState, getFlakeRef(), useRegistries); } - ResolvedFlake resolveFlake() + LockedFlake lockFlake() { - return flake::resolveFlake(*getEvalState(), getFlakeRef(), getLockFileMode()); + return flake::lockFlake(*getEvalState(), getFlakeRef(), getLockFileMode()); } }; @@ -122,16 +122,16 @@ struct CmdFlakeDeps : FlakeCommand { auto evalState = getEvalState(); - std::queue<ResolvedFlake> todo; - todo.push(resolveFlake()); + std::queue<LockedFlake> todo; + todo.push(lockFlake()); stopProgressBar(); while (!todo.empty()) { - auto resFlake = std::move(todo.front()); + auto lockedFlake = std::move(todo.front()); todo.pop(); - for (auto & info : resFlake.flakeDeps) { + for (auto & info : lockedFlake.flakeDeps) { printFlakeInfo(*store, info.second.flake); todo.push(info.second); } @@ -150,7 +150,7 @@ struct CmdFlakeUpdate : FlakeCommand void run(nix::ref<nix::Store> store) override { auto evalState = getEvalState(); - resolveFlake(); + lockFlake(); } }; @@ -179,7 +179,7 @@ struct CmdFlakeInfo : FlakeCommand, MixJSON { if (json) { auto state = getEvalState(); - auto flake = resolveFlake(); + auto flake = lockFlake(); auto json = flakeToJson(*store, flake.flake); @@ -235,7 +235,7 @@ struct CmdFlakeCheck : FlakeCommand, MixJSON settings.readOnlyMode = !build; auto state = getEvalState(); - auto flake = resolveFlake(); + auto flake = lockFlake(); auto checkSystemName = [&](const std::string & system, const Pos & pos) { // FIXME: what's the format of "system"? |