pre-commit: alter when 'nix build' runs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
* do not run 'nix build' on arbitrary go src file changes, instead (except for nix and flake related changes) only run on module-wide changes, i.e. when sum,mod files change as these require flake vendorSha256 updates or else they would fail to build.
This commit is contained in:
parent
6372fd93fd
commit
bd58ca6608
@ -66,6 +66,6 @@ repos:
|
|||||||
entry: nix build .#go-xkcdreader
|
entry: nix build .#go-xkcdreader
|
||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
# trigger this hook on changes to any of nix (also flake.lock) files
|
# trigger this hook on changes to any of nix (also flake.lock) files
|
||||||
# and go's src, mod or sum files
|
# and go's mod or sum files
|
||||||
files: '\.*.(nix|lock|go|mod|sum)$'
|
files: '\.*.(nix|lock|mod|sum)$'
|
||||||
language: system
|
language: system
|
||||||
|
Loading…
Reference in New Issue
Block a user