From a4749a4fa7622a8c0e309f95dc48bb38062e294c Mon Sep 17 00:00:00 2001 From: Stavros Ntentos <133706+stdedos@users.noreply.github.com> Date: Tue, 3 Jan 2023 13:30:30 +0200 Subject: [PATCH] Set `go-mod-tidy` hook as `always_run: true` While it could be that we only need to run `go mod tidy` only after `\.go$` files modifications, currently it runs for `''`, which I assume to be the catch-all "if any file is modified, run this hook". Let's make this more explicit by setting `always_run: true` Signed-off-by: Stavros Ntentos <133706+stdedos@users.noreply.github.com> --- .pre-commit-hooks.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index 8363882..36bdea6 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -84,6 +84,7 @@ - id: go-mod-tidy name: 'go-mod-tidy' entry: run-go-mod-tidy.sh + always_run: true pass_filenames: false language: 'script' description: "Runs `go mod tidy -v`, requires golang"