diff options
author | Alan Pearce | 2024-05-20 18:45:29 +0200 |
---|---|---|
committer | Alan Pearce | 2024-05-20 18:45:29 +0200 |
commit | 42b988299020219463edb3d94b4563cbfc6b2128 (patch) | |
tree | 53b50d7fb1182561913aada8467b62f8c4c6f453 /nix | |
parent | 202317df1dba891654bf749c3720fbd602df04ff (diff) | |
download | searchix-42b988299020219463edb3d94b4563cbfc6b2128.tar.lz searchix-42b988299020219463edb3d94b4563cbfc6b2128.tar.zst searchix-42b988299020219463edb3d94b4563cbfc6b2128.zip |
build: check defaults.toml wasn't modified pre-commit
Diffstat (limited to 'nix')
-rw-r--r-- | nix/pre-commit-checks.nix | 3 |
1 files changed, 2 insertions, 1 deletions
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" '' |