mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #8360 from heyitsanthony/fix-osx-fmt
test: fix PASSES=fmt for OSX
This commit is contained in:
commit
e77ecb593c
2
test
2
test
@ -273,7 +273,7 @@ function fmt_pass {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Checking 'go tool vet -all -shadow'..."
|
echo "Checking 'go tool vet -all -shadow'..."
|
||||||
fmtpkgs=$(echo $FMT | xargs dirname | sort | uniq | sed '/\./d')
|
fmtpkgs=$(for a in $FMT; do dirname "$a"; done | sort | uniq | grep -v "\\.")
|
||||||
vetRes=$(go tool vet -all -shadow ${fmtpkgs} 2>&1 | grep -v '/gw/' || true)
|
vetRes=$(go tool vet -all -shadow ${fmtpkgs} 2>&1 | grep -v '/gw/' || true)
|
||||||
if [ -n "${vetRes}" ]; then
|
if [ -n "${vetRes}" ]; then
|
||||||
echo -e "govet -all -shadow checking failed:\n${vetRes}"
|
echo -e "govet -all -shadow checking failed:\n${vetRes}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user