mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
Move the InputCache to EvalState
This commit is contained in:
parent
e3042f10af
commit
4966217b6a
7 changed files with 16 additions and 13 deletions
|
@ -7,7 +7,6 @@
|
|||
#include "nix_api_fetchers.h"
|
||||
|
||||
#include "nix/flake/flake.hh"
|
||||
#include "nix/fetchers/input-cache.hh"
|
||||
|
||||
nix_flake_settings * nix_flake_settings_new(nix_c_context * context)
|
||||
{
|
||||
|
@ -178,7 +177,7 @@ nix_locked_flake * nix_flake_lock(
|
|||
{
|
||||
nix_clear_err(context);
|
||||
try {
|
||||
nix::fetchers::InputCache::getCache()->clear();
|
||||
eval_state->state.resetFileCache();
|
||||
auto lockedFlake = nix::make_ref<nix::flake::LockedFlake>(nix::flake::lockFlake(
|
||||
*flakeSettings->settings, eval_state->state, *flakeReference->flakeRef, *flags->lockFlags));
|
||||
return new nix_locked_flake{lockedFlake};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue