diff options
-rw-r--r-- | src/libexpr/flake/flake.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libexpr/flake/flake.cc b/src/libexpr/flake/flake.cc index 055ff6321..6b98cfad2 100644 --- a/src/libexpr/flake/flake.cc +++ b/src/libexpr/flake/flake.cc @@ -599,6 +599,11 @@ LockedFlake lockFlake( FlakeCache dummyCache; flake = getFlake(state, topRef, {}, lockFlags.useRegistries, dummyCache); + if (lockFlags.commitLockFile && + flake.lockedRef.input->getRev() && + prevLockedRef.input->getRev() != flake.lockedRef.input->getRev()) + warn("committed new revision '%s'", flake.lockedRef.input->getRev()->gitRev()); + /* Make sure that we picked up the change, i.e. the tree should usually be dirty now. Corner case: we could have reverted from a |