diff options
author | Alexander Bantyev <balsoft@balsoft.ru> | 2021-12-28 15:30:06 +0300 |
---|---|---|
committer | Alexander Bantyev <balsoft@balsoft.ru> | 2021-12-28 15:30:06 +0300 |
commit | 2664a216e57169ec57d7f51be1b8383c1be83fd5 (patch) | |
tree | 0e5d590a4b5f0004456c8e8aefea7e7382daeac4 /src/libutil/affinity.hh | |
parent | 0e90b13ab1df925e549b5d55853b65911b4b40d3 (diff) |
flake.cc: computeLocks: Only verify overrides when they could change
When we check for disappeared overrides, we can get "false positives"
for follows and overrides which are defined in the dependencies of the
flake we are locking, since they are not parsed by
parseFlakeInputs. However, at that point we already know that the
overrides couldn't have possible been changed if the input itself
hasn't changed (since we check that oldLock->originalRef == *input.ref
for the input's parent). So, to prevent this, only perform this check
when it was possible that the flake changed (e.g. the flake we're
locking, or a new input, or the input has changed and mustRefetch ==
true).
Diffstat (limited to 'src/libutil/affinity.hh')
0 files changed, 0 insertions, 0 deletions