1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 06:31:14 +02:00

Do not attempt to write a lock file in builtins.getFlake

Fixes https://github.com/NixOS/nix/issues/6541
This commit is contained in:
Naïm Favier 2022-05-18 11:33:04 +02:00
parent 7062ebf5be
commit 169384abb2
No known key found for this signature in database
GPG key ID: 49B07322580B7EE2
2 changed files with 2 additions and 0 deletions

View file

@ -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,
}),