build: check defaults.toml wasn't modified pre-commit
Alan Pearce alan@alanpearce.eu
Mon, 20 May 2024 18:45:29 +0200
1 files changed, 2 insertions(+), 1 deletions(-)
jump to
M nix/pre-commit-checks.nix → nix/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" ''