diff options
author | Kevin Amado <kamadorueda@gmail.com> | 2022-01-21 10:43:16 -0500 |
---|---|---|
committer | Kevin Amado <kamadorueda@gmail.com> | 2022-01-21 16:32:43 -0500 |
commit | c3896e19d0001b4f729017aa96d0a44b6e479a52 (patch) | |
tree | f41be33aff11261bbb4f02ece3241cac102c4a34 /src/nix/flake.cc | |
parent | 1472e045a757af4e289801673b456b78ebf18933 (diff) |
forceAttrs: make pos mandatory
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r-- | src/nix/flake.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 97f4d911c..486b43f0f 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -124,12 +124,13 @@ struct CmdFlakeLock : FlakeCommand static void enumerateOutputs(EvalState & state, Value & vFlake, std::function<void(const std::string & name, Value & vProvide, const Pos & pos)> callback) { - state.forceAttrs(vFlake); + auto pos = vFlake.determinePos(noPos); + state.forceAttrs(vFlake, pos); auto aOutputs = vFlake.attrs->get(state.symbols.create("outputs")); assert(aOutputs); - state.forceAttrs(*aOutputs->value); + state.forceAttrs(*aOutputs->value, pos); auto sHydraJobs = state.symbols.create("hydraJobs"); |