diff --git a/bin/test-go-fmt b/bin/test-go-fmt index 8bc7d2e66..5b17f2d5c 100755 --- a/bin/test-go-fmt +++ b/bin/test-go-fmt @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail T="$(mktemp)" -find . -name '*.go' | xargs gofmt -l > "$T" +find . -name '*.go' '!' -path ./plugin/loader/preload.go | xargs gofmt -l > "$T" if [ -n "$(cat $T)" ]; then echo "Following Go code is not formatted."