Files
nixos/.pre-commit-config.yaml
T
oqyude db3cbd023a fix(ci): invoke .ci/checks.sh through bash in the pre-commit hook (T39b)
pre-commit's `language: script` execs the entry directly, without a shell.
Running the script through `bash` removes the dependency on the file mode
entirely, so the hook keeps working in checkouts made with core.fileMode
=false, from a tarball, or on a filesystem that does not preserve the
executable bit.

The previous commit (ca450f1) sets the mode to 100755 as well; both are
kept because they fail independently.

Not pushed.
2026-10-23 12:56:10 +03:00

14 lines
445 B
YAML

repos:
- repo: local
hooks:
- id: nixos-flake-checks
name: nixos flake invariant checks
description: |
Runs .ci/checks.sh: sops path_regex compliance, no
`:latest` in container images (with R1.5/R1.8 whitelist),
and `nix flake check` (skippable via --no-build).
entry: bash .ci/checks.sh --no-build
language: script
pass_filenames: false
always_run: true