diff options
author | Naïm Favier <n@monade.li> | 2022-05-18 11:33:04 +0200 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2022-05-18 15:45:06 +0200 |
commit | 169384abb2bcfb687c8ad5959896738a76f3452e (patch) | |
tree | f83f17e1694d008da55c19887de0d0c0c165e510 /src/libexpr/flake | |
parent | 7062ebf5beb62b069dbf7e83f9c0dd92cf999cd3 (diff) |
Do not attempt to write a lock file in builtins.getFlake
Fixes https://github.com/NixOS/nix/issues/6541
Diffstat (limited to 'src/libexpr/flake')
-rw-r--r-- | src/libexpr/flake/flake.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/flake/flake.cc b/src/libexpr/flake/flake.cc index cbf4f0a6f..35c841897 100644 --- a/src/libexpr/flake/flake.cc +++ b/src/libexpr/flake/flake.cc @@ -723,6 +723,7 @@ static void prim_getFlake(EvalState & state, const PosIdx pos, Value * * args, V lockFlake(state, flakeRef, LockFlags { .updateLockFile = false, + .writeLockFile = false, .useRegistries = !evalSettings.pureEval && fetchSettings.useRegistries, .allowMutable = !evalSettings.pureEval, }), |