Preserve 'isFlake' when not updating a lock file entry

This commit is contained in:
Eelco Dolstra 2020-06-10 16:24:05 +02:00
parent 2226e97ec2
commit 195ed43b60

View file

@ -391,7 +391,8 @@ LockedFlake lockFlake(
// of a circular reference back to the root.
if (lockedNode)
fakeInputs.emplace(i.first, FlakeInput {
.ref = lockedNode->originalRef
.ref = lockedNode->originalRef,
.isFlake = lockedNode->isFlake,
});
else {
InputPath path(inputPath);