From 383ce014df67ff3eb506ba8c68e655e830c35d03 Mon Sep 17 00:00:00 2001 From: Rory& Date: Wed, 17 Dec 2025 10:41:12 +0100 Subject: [PATCH] Pre-commit: dont update nix flake if recently updated --- .husky/pre-commit | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.husky/pre-commit b/.husky/pre-commit index dbbc6d5f0..d91d5d93f 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -17,6 +17,8 @@ if [ -n "$(find "flake.lock" -mtime +7 -print)" ]; then else echo "You do not appear to have nix installed. Skipping update of nix dependencies." fi +else + echo "Nix flake lock was updated less than 7 days ago. Skipping update." fi npx -y lint-staged