From 42b988299020219463edb3d94b4563cbfc6b2128 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 20 May 2024 18:45:29 +0200 Subject: build: check defaults.toml wasn't modified pre-commit --- nix/pre-commit-checks.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nix/pre-commit-checks.nix') diff --git a/nix/pre-commit-checks.nix b/nix/pre-commit-checks.nix index 4858783..eb43a4e 100644 --- a/nix/pre-commit-checks.nix +++ b/nix/pre-commit-checks.nix @@ -96,7 +96,8 @@ rec { 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" '' -- cgit 1.4.1