mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Check 'follows' inputs
This commit is contained in:
parent
d15c20efd5
commit
7db879e65e
3 changed files with 51 additions and 22 deletions
|
@ -469,12 +469,15 @@ LockedFlake lockFlake(
|
|||
if (!updatesUsed.count(i))
|
||||
warn("the flag '--update-input %s' does not match any input", printInputPath(i));
|
||||
|
||||
/* Check 'follows' inputs. */
|
||||
newLockFile.check();
|
||||
|
||||
debug("new lock file: %s", newLockFile);
|
||||
|
||||
/* Check whether we need to / can write the new lock file. */
|
||||
if (!(newLockFile == oldLockFile)) {
|
||||
|
||||
auto diff = diffLockFiles(oldLockFile, newLockFile);
|
||||
auto diff = LockFile::diff(oldLockFile, newLockFile);
|
||||
|
||||
if (lockFlags.writeLockFile) {
|
||||
if (auto sourcePath = topRef.input.getSourcePath()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue