Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Set go-mod-tidy hook as always_run: true #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stdedos
Copy link

@stdedos stdedos commented Jan 3, 2023

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

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>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant