mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
Exclude more concurrency-sensitive dirs from fmt test
This commit is contained in:
parent
67741060c4
commit
5d3247f9b7
@ -1,7 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
T="$(mktemp)"
|
||||
find . -name '*.go' '!' -path ./plugin/loader/preload.go | xargs gofmt -l > "$T"
|
||||
find . \
|
||||
-path ./test/sharness -prune \
|
||||
-o -path ./plugin/loader/preload.go -prune \
|
||||
-o -name '*.go' -print0 | xargs -0 gofmt -l > "$T"
|
||||
|
||||
if [ -n "$(cat $T)" ]; then
|
||||
echo "Following Go code is not formatted."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user