mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-01 06:17:56 +08:00
Prevent go fmt check from failing under make -j10 test
Under high paralellism we would be regenerating the plugin source while doing the initial `go fmt` read. Instead simply exclude the generated file.
This commit is contained in:
parent
0819fe6f4a
commit
81cb535c52
@ -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."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user