Skip to content

Commit

Permalink
Do not attempt to write a lock file in builtins.getFlake
Browse files Browse the repository at this point in the history
Fixes #6541
  • Loading branch information
ncfavier committed May 18, 2022
1 parent 7062ebf commit 681fc3c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libexpr/flake/flake.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down

0 comments on commit 681fc3c

Please sign in to comment.