From 85fef03670b3877dcd6a37eb1b6f74f97d8fb6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 5 Apr 2023 20:12:45 +0200 Subject: [PATCH] Run gofmt on all files, not just the changed ones MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ... so that if we upgrade gofmt, the updates need happen immediately. Signed-off-by: Miloslav Trmač --- hack/make/validate-gofmt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hack/make/validate-gofmt b/hack/make/validate-gofmt index 0f973f92..b589eb33 100755 --- a/hack/make/validate-gofmt +++ b/hack/make/validate-gofmt @@ -1,9 +1,7 @@ #!/bin/bash -source "$(dirname "$BASH_SOURCE")/.validate" - IFS=$'\n' -files=( $(validate_diff --diff-filter=ACMR --name-only -- '*.go' | grep -v '^vendor/' || true) ) +files=( $(find . -name '*.go' | grep -v '^./vendor/' | sort || true) ) unset IFS badFiles=()