Merge pull request #5215 from ncfavier/patch-1

Fix use-registries logic in builtins.getFlake
This commit is contained in:
Eelco Dolstra 2021-09-08 11:19:39 +02:00 committed by GitHub
commit 9180239081
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);