Skip to content

Commit 5d3247f

Browse files
committed
Exclude more concurrency-sensitive dirs from fmt test
1 parent 6774106 commit 5d3247f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/test-go-fmt

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33
T="$(mktemp)"
4-
find . -name '*.go' '!' -path ./plugin/loader/preload.go | xargs gofmt -l > "$T"
4+
find . \
5+
-path ./test/sharness -prune \
6+
-o -path ./plugin/loader/preload.go -prune \
7+
-o -name '*.go' -print0 | xargs -0 gofmt -l > "$T"
58

69
if [ -n "$(cat $T)" ]; then
710
echo "Following Go code is not formatted."

0 commit comments

Comments
 (0)