all repos — searchix @ 42b988299020219463edb3d94b4563cbfc6b2128

Search engine for NixOS, nix-darwin, home-manager and NUR users

build: check defaults.toml wasn't modified pre-commit
Alan Pearce alan@alanpearce.eu
Mon, 20 May 2024 18:45:29 +0200
commit

42b988299020219463edb3d94b4563cbfc6b2128

parent

202317df1dba891654bf749c3720fbd602df04ff

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M nix/pre-commit-checks.nixnix/pre-commit-checks.nix
@@ -96,7 +96,8 @@ generate-default-config = {       enable = true;
       name = "generate-default-config";
       description = "Ensure default configuration file is up-to-date";
-      files = "config.go$";
+      files = "^defaults.toml|internal/config/";
+      types_or = [ "go" "toml" ];
       entry =
         let
           script = pkgs.writeShellScript "generate-default-config" ''