mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 18:37:45 +08:00
Merge pull request #6988 from ipfs/chore/macos_sharness_fixes
Chore/macos sharness fixes
This commit is contained in:
commit
fe83c19cfd
@ -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."
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
# golang utilities
|
||||
GO_MIN_VERSION = 1.13
|
||||
GO_MIN_VERSION = 1.14
|
||||
export GO111MODULE=on
|
||||
|
||||
|
||||
|
||||
@ -10,7 +10,7 @@ for file in $(find .. -maxdepth 1 -name 't*.sh' -type f); do
|
||||
'
|
||||
|
||||
test_expect_success "test in $file has a description" '
|
||||
test_must_fail grep -L "^test_description=" "$file"
|
||||
grep -q "^test_description=" "$file"
|
||||
'
|
||||
|
||||
# We have some tests that manually kill.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user