Fix use-registries logic in builtins.getFlake

This commit is contained in:
Naïm Favier 2021-09-05 15:28:44 +02:00 committed by GitHub
parent 90b2dd570c
commit b0d4190f19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -686,7 +686,7 @@ static void prim_getFlake(EvalState & state, const Pos & pos, Value * * args, Va
lockFlake(state, flakeRef,
LockFlags {
.updateLockFile = false,
.useRegistries = !evalSettings.pureEval && !settings.useRegistries,
.useRegistries = !evalSettings.pureEval && settings.useRegistries,
.allowMutable = !evalSettings.pureEval,
}),
v);